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

Side by Side Diff: ui/aura/mus/window_tree_host_mus.h

Issue 2833093002: WIP: simplified display management in ash (Closed)
Patch Set: merge and more fixs Created 3 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 | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »
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_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 <memory> 10 #include <memory>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Tells the window manager to take control of moving the window. Returns 72 // Tells the window manager to take control of moving the window. Returns
73 // true if the move wasn't canceled. 73 // true if the move wasn't canceled.
74 void PerformWindowMove(ui::mojom::MoveLoopSource mus_source, 74 void PerformWindowMove(ui::mojom::MoveLoopSource mus_source,
75 const gfx::Point& cursor_location, 75 const gfx::Point& cursor_location,
76 const base::Callback<void(bool)>& callback); 76 const base::Callback<void(bool)>& callback);
77 77
78 // Tells the window manager to abort any current move initiated by 78 // Tells the window manager to abort any current move initiated by
79 // PerformWindowMove(). 79 // PerformWindowMove().
80 void CancelWindowMove(); 80 void CancelWindowMove();
81 81
82 ui::mojom::WmViewportMetricsPtr ReleaseInitialMetrics();
83 std::unique_ptr<display::Display> ReleaseInitialDisplay();
84
82 // Intended only for WindowTreeClient to call. 85 // Intended only for WindowTreeClient to call.
83 void set_display_id(int64_t id) { display_id_ = id; } 86 void set_display_id(int64_t id) { display_id_ = id; }
84 int64_t display_id() const { return display_id_; } 87 int64_t display_id() const { return display_id_; }
85 display::Display GetDisplay() const; 88 display::Display GetDisplay() const;
86 89
87 // aura::WindowTreeHostPlatform: 90 // aura::WindowTreeHostPlatform:
88 void HideImpl() override; 91 void HideImpl() override;
89 void SetBoundsInPixels(const gfx::Rect& bounds) override; 92 void SetBoundsInPixels(const gfx::Rect& bounds) override;
90 void DispatchEvent(ui::Event* event) override; 93 void DispatchEvent(ui::Event* event) override;
91 void OnClosed() override; 94 void OnClosed() override;
92 void OnActivationChanged(bool active) override; 95 void OnActivationChanged(bool active) override;
93 void OnCloseRequest() override; 96 void OnCloseRequest() override;
94 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; 97 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
95 void MoveCursorToScreenLocationInPixels( 98 void MoveCursorToScreenLocationInPixels(
96 const gfx::Point& location_in_pixels) override; 99 const gfx::Point& location_in_pixels) override;
97 100
98 private: 101 private:
99 int64_t display_id_; 102 int64_t display_id_;
100 103
101 WindowTreeHostMusDelegate* delegate_; 104 WindowTreeHostMusDelegate* delegate_;
102 105
103 bool in_set_bounds_from_server_ = false; 106 bool in_set_bounds_from_server_ = false;
104 107
105 std::unique_ptr<InputMethodMus> input_method_; 108 std::unique_ptr<InputMethodMus> input_method_;
106 109
110 ui::mojom::WmViewportMetricsPtr initial_metrics_;
111 std::unique_ptr<display::Display> initial_display_;
112
107 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 113 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
108 }; 114 };
109 115
110 } // namespace aura 116 } // namespace aura
111 117
112 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 118 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/aura/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698