| 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_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 InputMethodMus* input_method() { return input_method_.get(); } | 51 InputMethodMus* input_method() { return input_method_.get(); } |
| 52 | 52 |
| 53 // Intended only for WindowTreeClient to call. | 53 // Intended only for WindowTreeClient to call. |
| 54 void set_display_id(int64_t id) { display_id_ = id; } | 54 void set_display_id(int64_t id) { display_id_ = id; } |
| 55 int64_t display_id() const { return display_id_; } | 55 int64_t display_id() const { return display_id_; } |
| 56 display::Display GetDisplay() const; | 56 display::Display GetDisplay() const; |
| 57 | 57 |
| 58 // aura::WindowTreeHostPlatform: | 58 // aura::WindowTreeHostPlatform: |
| 59 void ShowImpl() override; | 59 void ShowImpl() override; |
| 60 void HideImpl() override; | 60 void HideImpl() override; |
| 61 void SetBounds(const gfx::Rect& bounds) override; | 61 void SetBoundsInPixel(const gfx::Rect& bounds) override; |
| 62 void DispatchEvent(ui::Event* event) override; | 62 void DispatchEvent(ui::Event* event) override; |
| 63 void OnClosed() override; | 63 void OnClosed() override; |
| 64 void OnActivationChanged(bool active) override; | 64 void OnActivationChanged(bool active) override; |
| 65 void OnCloseRequest() override; | 65 void OnCloseRequest() override; |
| 66 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; | 66 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 int64_t display_id_; | 69 int64_t display_id_; |
| 70 | 70 |
| 71 WindowTreeHostMusDelegate* delegate_; | 71 WindowTreeHostMusDelegate* delegate_; |
| 72 | 72 |
| 73 bool in_set_bounds_from_server_ = false; | 73 bool in_set_bounds_from_server_ = false; |
| 74 | 74 |
| 75 std::unique_ptr<InputMethodMus> input_method_; | 75 std::unique_ptr<InputMethodMus> input_method_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); | 77 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace aura | 80 } // namespace aura |
| 81 | 81 |
| 82 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ | 82 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ |
| OLD | NEW |