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

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

Issue 710203006: Reland: Remove aura and make a pure mojo::View version of FocusController. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove the offending lines. 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 e50a87c02b6c5b2ebdc9933890c67a0dae7e652b..ee2208a91d748399b14e03e4a46c7c9ca3e1007e 100644
--- a/examples/wm_flow/wm/frame_controller.cc
+++ b/examples/wm_flow/wm/frame_controller.cc
@@ -99,7 +99,6 @@ 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())),
@@ -107,7 +106,6 @@ 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);
@@ -146,8 +144,7 @@ void FrameController::ToggleMaximize() {
}
void FrameController::ActivateWindow() {
- aura::Window* window = window_manager_app_->GetWindowForViewId(view_->id());
- activation_client_->ActivateWindow(window);
+ window_manager_app_->focus_controller()->ActivateView(view_);
}
////////////////////////////////////////////////////////////////////////////////
« 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