| 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 23 matching lines...) Expand all Loading... |
| 34 class VIEWS_MUS_EXPORT PlatformWindowMus | 34 class VIEWS_MUS_EXPORT PlatformWindowMus |
| 35 : public NON_EXPORTED_BASE(ui::PlatformWindow), | 35 : public NON_EXPORTED_BASE(ui::PlatformWindow), |
| 36 public mus::WindowObserver, | 36 public mus::WindowObserver, |
| 37 public NON_EXPORTED_BASE(mus::InputEventHandler) { | 37 public NON_EXPORTED_BASE(mus::InputEventHandler) { |
| 38 public: | 38 public: |
| 39 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, | 39 PlatformWindowMus(ui::PlatformWindowDelegate* delegate, |
| 40 shell::Connector* connector, | 40 shell::Connector* connector, |
| 41 mus::Window* mus_window); | 41 mus::Window* mus_window); |
| 42 ~PlatformWindowMus() override; | 42 ~PlatformWindowMus() override; |
| 43 | 43 |
| 44 void Activate(); | |
| 45 | |
| 46 void SetCursorById(mus::mojom::Cursor cursor); | 44 void SetCursorById(mus::mojom::Cursor cursor); |
| 47 | 45 |
| 48 // ui::PlatformWindow: | 46 // ui::PlatformWindow: |
| 49 void Show() override; | 47 void Show() override; |
| 50 void Hide() override; | 48 void Hide() override; |
| 51 void Close() override; | 49 void Close() override; |
| 52 void SetBounds(const gfx::Rect& bounds) override; | 50 void SetBounds(const gfx::Rect& bounds) override; |
| 53 gfx::Rect GetBounds() override; | 51 gfx::Rect GetBounds() override; |
| 54 void SetTitle(const base::string16& title) override; | 52 void SetTitle(const base::string16& title) override; |
| 55 void SetCapture() override; | 53 void SetCapture() override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 #ifndef NDEBUG | 102 #ifndef NDEBUG |
| 105 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; | 103 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; |
| 106 #endif | 104 #endif |
| 107 | 105 |
| 108 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); | 106 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 } // namespace views | 109 } // namespace views |
| 112 | 110 |
| 113 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 111 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
| OLD | NEW |