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

Side by Side Diff: ui/aura/window_tree_host_win.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed bot failure: cast_shell_linux Created 5 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/aura/window_tree_host_win.h" 5 #include "ui/aura/window_tree_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 void WindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) { 107 void WindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) {
108 // Deliberately not implemented. 108 // Deliberately not implemented.
109 } 109 }
110 110
111 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { 111 void WindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) {
112 NOTIMPLEMENTED(); 112 NOTIMPLEMENTED();
113 } 113 }
114 114
115 ui::EventProcessor* WindowTreeHostWin::GetEventProcessor() {
116 return dispatcher();
117 }
118
119 void WindowTreeHostWin::OnBoundsChanged(const gfx::Rect& new_bounds) { 115 void WindowTreeHostWin::OnBoundsChanged(const gfx::Rect& new_bounds) {
120 gfx::Rect old_bounds = bounds_; 116 gfx::Rect old_bounds = bounds_;
121 bounds_ = new_bounds; 117 bounds_ = new_bounds;
122 if (bounds_.origin() != old_bounds.origin()) 118 if (bounds_.origin() != old_bounds.origin())
123 OnHostMoved(bounds_.origin()); 119 OnHostMoved(bounds_.origin());
124 if (bounds_.size() != old_bounds.size()) 120 if (bounds_.size() != old_bounds.size())
125 OnHostResized(bounds_.size()); 121 OnHostResized(bounds_.size());
126 } 122 }
127 123
128 void WindowTreeHostWin::OnDamageRect(const gfx::Rect& damage_rect) { 124 void WindowTreeHostWin::OnDamageRect(const gfx::Rect& damage_rect) {
(...skipping 30 matching lines...) Expand all
159 widget_ = widget; 155 widget_ = widget;
160 CreateCompositor(widget); 156 CreateCompositor(widget);
161 } 157 }
162 158
163 void WindowTreeHostWin::OnActivationChanged(bool active) { 159 void WindowTreeHostWin::OnActivationChanged(bool active) {
164 if (active) 160 if (active)
165 OnHostActivated(); 161 OnHostActivated();
166 } 162 }
167 163
168 } // namespace aura 164 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698