mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove references to button no longer present in UI
These were in the default app which had an address bar. They are no longer present and were causing assertion failures to be logged.
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
#include "native_handler.h"
|
||||
|
||||
ClientHandler::ClientHandler() :
|
||||
m_MainHwnd(NULL), m_BrowserHwnd(NULL), m_EditHwnd(NULL), m_BackHwnd(
|
||||
NULL), m_ForwardHwnd(NULL), m_StopHwnd(NULL), m_ReloadHwnd(
|
||||
NULL), m_bFormElementHasFocus(false) {
|
||||
m_MainHwnd(NULL), m_BrowserHwnd(NULL), m_bFormElementHasFocus(false) {
|
||||
}
|
||||
|
||||
ClientHandler::~ClientHandler() {
|
||||
@@ -65,9 +63,6 @@ void ClientHandler::OnLoadStart(CefRefPtr<CefBrowser> browser,
|
||||
REQUIRE_UI_THREAD();
|
||||
|
||||
if (m_BrowserHwnd == browser->GetWindowHandle() && frame->IsMain()) {
|
||||
// We've just started loading a page
|
||||
SetLoading(true);
|
||||
|
||||
CefRefPtr<CefV8Context> context = frame->GetV8Context();
|
||||
CefRefPtr<CefV8Value> global = context->GetGlobal();
|
||||
context->Enter();
|
||||
@@ -113,9 +108,6 @@ void ClientHandler::OnLoadEnd(CefRefPtr<CefBrowser> browser,
|
||||
REQUIRE_UI_THREAD();
|
||||
|
||||
if (m_BrowserHwnd == browser->GetWindowHandle() && frame->IsMain()) {
|
||||
// We've just finished loading a page
|
||||
SetLoading(false);
|
||||
|
||||
CefRefPtr<CefDOMVisitor> visitor = GetDOMVisitor(frame->GetURL());
|
||||
if (visitor.get())
|
||||
frame->VisitDOM(visitor);
|
||||
@@ -152,9 +144,7 @@ bool ClientHandler::OnLoadError(CefRefPtr<CefBrowser> browser,
|
||||
|
||||
void ClientHandler::OnNavStateChange(CefRefPtr<CefBrowser> browser,
|
||||
bool canGoBack, bool canGoForward) {
|
||||
REQUIRE_UI_THREAD();
|
||||
|
||||
SetNavState(canGoBack, canGoForward);
|
||||
//Intentionally left blank
|
||||
}
|
||||
|
||||
bool ClientHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser,
|
||||
@@ -288,21 +278,6 @@ void ClientHandler::SetMainHwnd(CefWindowHandle hwnd) {
|
||||
m_MainHwnd = hwnd;
|
||||
}
|
||||
|
||||
void ClientHandler::SetEditHwnd(CefWindowHandle hwnd) {
|
||||
AutoLock lock_scope(this);
|
||||
m_EditHwnd = hwnd;
|
||||
}
|
||||
|
||||
void ClientHandler::SetButtonHwnds(CefWindowHandle backHwnd,
|
||||
CefWindowHandle forwardHwnd, CefWindowHandle reloadHwnd,
|
||||
CefWindowHandle stopHwnd) {
|
||||
AutoLock lock_scope(this);
|
||||
m_BackHwnd = backHwnd;
|
||||
m_ForwardHwnd = forwardHwnd;
|
||||
m_ReloadHwnd = reloadHwnd;
|
||||
m_StopHwnd = stopHwnd;
|
||||
}
|
||||
|
||||
std::string ClientHandler::GetLogFile() {
|
||||
AutoLock lock_scope(this);
|
||||
return m_LogFile;
|
||||
|
||||
Reference in New Issue
Block a user