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

Unified Diff: ash/launcher/launcher.cc

Issue 9113056: Change the launcher to use AccessiblePaneView, and make the buttons focusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make overflow button focusable Created 8 years, 11 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 | « ash/launcher/app_launcher_button.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher.cc
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc
index c17208844337797f6abf87723bcd0fc00d7df260..61810e2e3c23b896acbb74e24afe5c3f8bf8d95d 100644
--- a/ash/launcher/launcher.cc
+++ b/ash/launcher/launcher.cc
@@ -15,6 +15,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/image/image.h"
+#include "ui/views/accessible_pane_view.h"
#include "ui/views/painter.h"
#include "ui/views/widget/widget.h"
@@ -44,7 +45,8 @@ class ShelfPainter : public views::Painter {
// The contents view of the Widget. This view contains LauncherView and
// sizes it to the width of the widget minus the size of the status area.
-class Launcher::DelegateView : public views::WidgetDelegateView {
+class Launcher::DelegateView : public views::WidgetDelegate,
+ public views::AccessiblePaneView {
public:
explicit DelegateView();
virtual ~DelegateView();
@@ -56,6 +58,15 @@ class Launcher::DelegateView : public views::WidgetDelegateView {
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
+ virtual views::Widget* GetWidget() OVERRIDE {
+ return View::GetWidget();
+ }
+
+ virtual const views::Widget* GetWidget() const OVERRIDE {
+ return View::GetWidget();
+ }
+
+
private:
int status_width_;
« no previous file with comments | « ash/launcher/app_launcher_button.cc ('k') | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698