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

Unified Diff: examples/wm_flow/wm/frame_controller.cc

Issue 718573002: Revert "Remove aura and make a pure mojo::View version of the aura::Window FocusController." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « examples/wm_flow/wm/frame_controller.h ('k') | examples/wm_flow/wm/wm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wm_flow/wm/frame_controller.cc
diff --git a/examples/wm_flow/wm/frame_controller.cc b/examples/wm_flow/wm/frame_controller.cc
index ee2208a91d748399b14e03e4a46c7c9ca3e1007e..e50a87c02b6c5b2ebdc9933890c67a0dae7e652b 100644
--- a/examples/wm_flow/wm/frame_controller.cc
+++ b/examples/wm_flow/wm/frame_controller.cc
@@ -99,6 +99,7 @@ FrameController::FrameController(
mojo::Shell* shell,
mojo::View* view,
mojo::View** app_view,
+ aura::client::ActivationClient* activation_client,
mojo::WindowManagerApp* window_manager_app)
: view_(view),
app_view_(mojo::View::Create(view->view_manager())),
@@ -106,6 +107,7 @@ FrameController::FrameController(
frame_view_layout_manager_(new LayoutManager(this)),
widget_(new views::Widget),
maximized_(false),
+ activation_client_(activation_client),
window_manager_app_(window_manager_app) {
view_->AddChild(app_view_);
view_->AddObserver(this);
@@ -144,7 +146,8 @@ void FrameController::ToggleMaximize() {
}
void FrameController::ActivateWindow() {
- window_manager_app_->focus_controller()->ActivateView(view_);
+ aura::Window* window = window_manager_app_->GetWindowForViewId(view_->id());
+ activation_client_->ActivateWindow(window);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « examples/wm_flow/wm/frame_controller.h ('k') | examples/wm_flow/wm/wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698