| OLD | NEW |
| 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_PLATFORM_WINDOW_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
| 6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class Connector; | 24 class Connector; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace ui { | 27 namespace ui { |
| 28 class Event; | 28 class Event; |
| 29 class ViewProp; | 29 class ViewProp; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace views { | 32 namespace views { |
| 33 | 33 |
| 34 // This class has been marked for deletion. Its implementation is being rolled |
| 35 // into views::NativeWidgetMus. See crbug.com/609555 for details. |
| 34 class VIEWS_MUS_EXPORT PlatformWindowMus | 36 class VIEWS_MUS_EXPORT PlatformWindowMus |
| 35 : public NON_EXPORTED_BASE(ui::PlatformWindow), | 37 : public NON_EXPORTED_BASE(ui::PlatformWindow), |
| 36 public mus::WindowObserver, | 38 public mus::WindowObserver, |
| 37 public NON_EXPORTED_BASE(mus::InputEventHandler) { | 39 public NON_EXPORTED_BASE(mus::InputEventHandler) { |
| 38 public: | 40 public: |
| 39 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, | 41 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, |
| 40 shell::Connector* connector, | 42 shell::Connector* connector, |
| 41 mus::Window* mus_window); | 43 mus::Window* mus_window); |
| 42 ~PlatformWindowMus() override; | 44 ~PlatformWindowMus() override; |
| 43 | 45 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 61 void ConfineCursorToBounds(const gfx::Rect& bounds) override; | 63 void ConfineCursorToBounds(const gfx::Rect& bounds) override; |
| 62 ui::PlatformImeController* GetPlatformImeController() override; | 64 ui::PlatformImeController* GetPlatformImeController() override; |
| 63 | 65 |
| 64 private: | 66 private: |
| 65 friend class PlatformWindowMusTest; | 67 friend class PlatformWindowMusTest; |
| 66 | 68 |
| 67 void SetShowState(mus::mojom::ShowState show_state); | 69 void SetShowState(mus::mojom::ShowState show_state); |
| 68 | 70 |
| 69 // mus::WindowObserver: | 71 // mus::WindowObserver: |
| 70 void OnWindowDestroyed(mus::Window* window) override; | 72 void OnWindowDestroyed(mus::Window* window) override; |
| 71 void OnWindowBoundsChanged(mus::Window* window, | |
| 72 const gfx::Rect& old_bounds, | |
| 73 const gfx::Rect& new_bounds) override; | |
| 74 void OnWindowFocusChanged(mus::Window* gained_focus, | 73 void OnWindowFocusChanged(mus::Window* gained_focus, |
| 75 mus::Window* lost_focus) override; | 74 mus::Window* lost_focus) override; |
| 76 void OnWindowPredefinedCursorChanged(mus::Window* window, | 75 void OnWindowPredefinedCursorChanged(mus::Window* window, |
| 77 mus::mojom::Cursor cursor) override; | 76 mus::mojom::Cursor cursor) override; |
| 78 void OnWindowSharedPropertyChanged( | 77 void OnWindowSharedPropertyChanged( |
| 79 mus::Window* window, | 78 mus::Window* window, |
| 80 const std::string& name, | 79 const std::string& name, |
| 81 const std::vector<uint8_t>* old_data, | 80 const std::vector<uint8_t>* old_data, |
| 82 const std::vector<uint8_t>* new_data) override; | 81 const std::vector<uint8_t>* new_data) override; |
| 83 void OnRequestClose(mus::Window* window) override; | 82 void OnRequestClose(mus::Window* window) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 102 #ifndef NDEBUG | 101 #ifndef NDEBUG |
| 103 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; | 102 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; |
| 104 #endif | 103 #endif |
| 105 | 104 |
| 106 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); | 105 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 } // namespace views | 108 } // namespace views |
| 110 | 109 |
| 111 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 110 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
| OLD | NEW |