| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void OnWindowPredefinedCursorChanged(mus::Window* window, | 75 void OnWindowPredefinedCursorChanged(mus::Window* window, |
| 76 mus::mojom::Cursor cursor) override; | 76 mus::mojom::Cursor cursor) override; |
| 77 void OnWindowSharedPropertyChanged( | 77 void OnWindowSharedPropertyChanged( |
| 78 mus::Window* window, | 78 mus::Window* window, |
| 79 const std::string& name, | 79 const std::string& name, |
| 80 const std::vector<uint8_t>* old_data, | 80 const std::vector<uint8_t>* old_data, |
| 81 const std::vector<uint8_t>* new_data) override; | 81 const std::vector<uint8_t>* new_data) override; |
| 82 void OnRequestClose(mus::Window* window) override; | 82 void OnRequestClose(mus::Window* window) override; |
| 83 | 83 |
| 84 // mus::InputEventHandler: | 84 // mus::InputEventHandler: |
| 85 void OnWindowInputEvent(mus::Window* view, | 85 void OnWindowInputEvent( |
| 86 mus::mojom::EventPtr event, | 86 mus::Window* view, |
| 87 scoped_ptr<base::Closure>* ack_callback) override; | 87 mus::mojom::EventPtr event, |
| 88 scoped_ptr<base::Callback<void(bool)>>* ack_callback) override; |
| 88 | 89 |
| 89 ui::PlatformWindowDelegate* delegate_; | 90 ui::PlatformWindowDelegate* delegate_; |
| 90 mus::Window* mus_window_; | 91 mus::Window* mus_window_; |
| 91 mus::mojom::ShowState show_state_; | 92 mus::mojom::ShowState show_state_; |
| 92 mus::mojom::Cursor last_cursor_; | 93 mus::mojom::Cursor last_cursor_; |
| 93 | 94 |
| 94 // True if OnWindowDestroyed() has been received. | 95 // True if OnWindowDestroyed() has been received. |
| 95 bool mus_window_destroyed_; | 96 bool mus_window_destroyed_; |
| 96 | 97 |
| 97 scoped_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_; | 98 scoped_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_; |
| 98 scoped_ptr<ui::ViewProp> prop_; | 99 scoped_ptr<ui::ViewProp> prop_; |
| 99 #ifndef NDEBUG | 100 #ifndef NDEBUG |
| 100 scoped_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; | 101 scoped_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_; |
| 101 #endif | 102 #endif |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); | 104 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace views | 107 } // namespace views |
| 107 | 108 |
| 108 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ | 109 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_ |
| OLD | NEW |