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

Side by Side Diff: mandoline/ui/aura/window_tree_host_mojo.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mandoline/ui/aura/window_tree_host_mojo.h" 5 #include "mandoline/ui/aura/window_tree_host_mojo.h"
6 6
7 #include "components/view_manager/public/cpp/view_manager.h" 7 #include "components/view_manager/public/cpp/view_manager.h"
8 #include "mandoline/ui/aura/surface_context_factory.h" 8 #include "mandoline/ui/aura/surface_context_factory.h"
9 #include "mojo/application/public/interfaces/shell.mojom.h"
9 #include "mojo/converters/geometry/geometry_type_converters.h" 10 #include "mojo/converters/geometry/geometry_type_converters.h"
10 #include "mojo/public/interfaces/application/shell.mojom.h"
11 #include "ui/aura/env.h" 11 #include "ui/aura/env.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/aura/window_event_dispatcher.h" 13 #include "ui/aura/window_event_dispatcher.h"
14 #include "ui/events/event.h" 14 #include "ui/events/event.h"
15 #include "ui/events/event_constants.h" 15 #include "ui/events/event_constants.h"
16 16
17 namespace mandoline { 17 namespace mandoline {
18 18
19 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
20 // WindowTreeHostMojo, public: 20 // WindowTreeHostMojo, public:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 gfx::Rect old_bounds2 = old_bounds.To<gfx::Rect>(); 108 gfx::Rect old_bounds2 = old_bounds.To<gfx::Rect>();
109 gfx::Rect new_bounds2 = new_bounds.To<gfx::Rect>(); 109 gfx::Rect new_bounds2 = new_bounds.To<gfx::Rect>();
110 bounds_ = new_bounds2; 110 bounds_ = new_bounds2;
111 if (old_bounds2.origin() != new_bounds2.origin()) 111 if (old_bounds2.origin() != new_bounds2.origin())
112 OnHostMoved(bounds_.origin()); 112 OnHostMoved(bounds_.origin());
113 if (old_bounds2.size() != new_bounds2.size()) 113 if (old_bounds2.size() != new_bounds2.size())
114 OnHostResized(bounds_.size()); 114 OnHostResized(bounds_.size());
115 } 115 }
116 116
117 } // namespace mandoline 117 } // namespace mandoline
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698