Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

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

Issue 1585011: Add menu and menu item events to the accessibility extension api, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/common/extensions/api/extension_api.json » ('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 43705)
+++ chrome/browser/views/frame/browser_view.cc (working copy)
@@ -65,6 +65,7 @@
#include "chrome/browser/aeropeek_manager.h"
#include "chrome/browser/jumplist.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
@@ -639,6 +640,13 @@
// BrowserView, BrowserWindow implementation:
void BrowserView::Show() {
+ #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();
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/common/extensions/api/extension_api.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698