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

Unified Diff: ui/views/controls/menu/menu_controller_aura.cc

Issue 11421194: Hook up the FocusController behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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
Index: ui/views/controls/menu/menu_controller_aura.cc
===================================================================
--- ui/views/controls/menu/menu_controller_aura.cc (revision 170746)
+++ ui/views/controls/menu/menu_controller_aura.cc (working copy)
@@ -5,13 +5,13 @@
#include "ui/views/controls/menu/menu_controller.h"
#include "base/run_loop.h"
-#include "ui/aura/client/activation_change_observer.h"
#include "ui/aura/client/activation_client.h"
#include "ui/aura/client/dispatcher_client.h"
#include "ui/aura/client/drag_drop_client.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window_observer.h"
#include "ui/gfx/screen.h"
+#include "ui/views/corewm/activation_change_shim.h"
#include "ui/views/widget/widget.h"
namespace views {
@@ -22,12 +22,13 @@
// the menu. Additionally it listens for the root window to be destroyed and
// cancel the menu as well.
class ActivationChangeObserverImpl
- : public aura::client::ActivationChangeObserver,
+ : public corewm::ActivationChangeShim,
public aura::WindowObserver {
public:
ActivationChangeObserverImpl(MenuController* controller,
aura::RootWindow* root)
- : controller_(controller),
+ : ActivationChangeShim(root),
+ controller_(controller),
root_(root) {
aura::client::GetActivationClient(root_)->AddObserver(this);
root_->AddObserver(this);
« no previous file with comments | « chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc ('k') | ui/views/corewm/activation_change_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698