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

Side by Side Diff: mojo/aura/window_tree_host_mojo.cc

Issue 790623003: Restructure public side of view_manager service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: BUILD.gn file reorderings Created 6 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 unified diff | Download patch
« no previous file with comments | « mojo/aura/window_tree_host_mojo.h ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/aura/window_tree_host_mojo.h" 5 #include "mojo/aura/window_tree_host_mojo.h"
6 6
7 #include "mojo/aura/surface_context_factory.h" 7 #include "mojo/aura/surface_context_factory.h"
8 #include "mojo/converters/geometry/geometry_type_converters.h" 8 #include "mojo/converters/geometry/geometry_type_converters.h"
9 #include "mojo/public/interfaces/application/shell.mojom.h" 9 #include "mojo/public/interfaces/application/shell.mojom.h"
10 #include "mojo/services/public/cpp/view_manager/view_manager.h" 10 #include "mojo/services/view_manager/public/cpp/view_manager.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 mojo { 17 namespace mojo {
18 18
19 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
20 // WindowTreeHostMojo, public: 20 // WindowTreeHostMojo, public:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 gfx::Rect old_bounds2 = old_bounds.To<gfx::Rect>(); 113 gfx::Rect old_bounds2 = old_bounds.To<gfx::Rect>();
114 gfx::Rect new_bounds2 = new_bounds.To<gfx::Rect>(); 114 gfx::Rect new_bounds2 = new_bounds.To<gfx::Rect>();
115 bounds_ = new_bounds2; 115 bounds_ = new_bounds2;
116 if (old_bounds2.origin() != new_bounds2.origin()) 116 if (old_bounds2.origin() != new_bounds2.origin())
117 OnHostMoved(bounds_.origin()); 117 OnHostMoved(bounds_.origin());
118 if (old_bounds2.size() != new_bounds2.size()) 118 if (old_bounds2.size() != new_bounds2.size())
119 OnHostResized(bounds_.size()); 119 OnHostResized(bounds_.size());
120 } 120 }
121 121
122 } // namespace mojo 122 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/aura/window_tree_host_mojo.h ('k') | mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698