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

Side by Side Diff: ui/views/mus/native_widget_mus.h

Issue 1967543002: Move ShowState-related code from PlatformWindowMus to NativeWidgetMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cast to PlatformWindowDelegate for OnWindowStateChanged Created 4 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
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus.cc » ('j') | ui/views/mus/native_widget_mus.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool CanFocus() override; 189 bool CanFocus() override;
190 void OnCaptureLost() override; 190 void OnCaptureLost() override;
191 void OnPaint(const ui::PaintContext& context) override; 191 void OnPaint(const ui::PaintContext& context) override;
192 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 192 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
193 void OnWindowDestroying(aura::Window* window) override; 193 void OnWindowDestroying(aura::Window* window) override;
194 void OnWindowDestroyed(aura::Window* window) override; 194 void OnWindowDestroyed(aura::Window* window) override;
195 void OnWindowTargetVisibilityChanged(bool visible) override; 195 void OnWindowTargetVisibilityChanged(bool visible) override;
196 bool HasHitTestMask() const override; 196 bool HasHitTestMask() const override;
197 void GetHitTestMask(gfx::Path* mask) const override; 197 void GetHitTestMask(gfx::Path* mask) const override;
198 198
199 void SetShowState(mus::mojom::ShowState show_state);
sadrul 2016/05/11 05:12:47 This needs to move up (or down in private). Non-ov
Mark Dittmer 2016/05/11 13:37:37 Done.
200
199 // Overridden from ui::EventHandler: 201 // Overridden from ui::EventHandler:
200 void OnKeyEvent(ui::KeyEvent* event) override; 202 void OnKeyEvent(ui::KeyEvent* event) override;
201 void OnMouseEvent(ui::MouseEvent* event) override; 203 void OnMouseEvent(ui::MouseEvent* event) override;
202 void OnScrollEvent(ui::ScrollEvent* event) override; 204 void OnScrollEvent(ui::ScrollEvent* event) override;
203 void OnGestureEvent(ui::GestureEvent* event) override; 205 void OnGestureEvent(ui::GestureEvent* event) override;
204 206
205 // Overridden from aura::WindowTreeHostObserver: 207 // Overridden from aura::WindowTreeHostObserver:
206 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; 208 void OnHostCloseRequested(const aura::WindowTreeHost* host) override;
207 209
208 private: 210 private:
(...skipping 26 matching lines...) Expand all
235 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; 237 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_;
236 std::unique_ptr<wm::CursorManager> cursor_manager_; 238 std::unique_ptr<wm::CursorManager> cursor_manager_;
237 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 239 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
238 240
239 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 241 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
240 }; 242 };
241 243
242 } // namespace views 244 } // namespace views
243 245
244 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 246 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus.cc » ('j') | ui/views/mus/native_widget_mus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698