Chromium Code Reviews

Unified Diff: chrome/browser/views/frame/browser_view.cc

Issue 2811023: Make the location bar generate accessibility extension API events... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/browser/views/location_bar/location_bar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_view.cc
===================================================================
--- chrome/browser/views/frame/browser_view.cc (revision 51112)
+++ chrome/browser/views/frame/browser_view.cc (working copy)
@@ -69,7 +69,6 @@
#include "chrome/browser/aeropeek_manager.h"
#include "chrome/browser/jumplist_win.h"
#elif defined(OS_LINUX)
-#include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
#include "chrome/browser/views/accelerator_table_gtk.h"
#include "views/window/hit_test.h"
#endif
@@ -664,16 +663,6 @@
// BrowserView, BrowserWindow implementation:
void BrowserView::Show() {
- accessible_view_helper_.reset(new AccessibleViewHelper(
- this, browser_->profile()));
-
-#if defined(OS_LINUX)
- if (!accessible_widget_helper_.get()) {
- accessible_widget_helper_.reset(new AccessibleWidgetHelper(
- GTK_WIDGET(GetWindow()->GetNativeWindow()), browser_->profile()));
- }
-#endif
-
// If the window is already visible, just activate it.
if (frame_->GetWindow()->IsVisible()) {
frame_->GetWindow()->Activate();
@@ -1754,6 +1743,9 @@
// BrowserView, private:
void BrowserView::Init() {
+ accessible_view_helper_.reset(new AccessibleViewHelper(
+ this, browser_->profile()));
+
SetLayoutManager(CreateLayoutManager());
// Stow a pointer to this object onto the window handle so that we can get
// at it later when all we have is a native view.
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/browser/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine