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

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

Issue 2567293004: Makes WindowTreeHost::InitHost() not Show the window (Closed)
Patch Set: WTF::Show shows window Created 4 years 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
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 <map> 10 #include <map>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to 66 // Sets the hit test mask on the underlying mus window. Pass base::nullopt to
67 // clear. 67 // clear.
68 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); 68 void SetHitTestMask(const base::Optional<gfx::Rect>& rect);
69 69
70 // Intended only for WindowTreeClient to call. 70 // Intended only for WindowTreeClient to call.
71 void set_display_id(int64_t id) { display_id_ = id; } 71 void set_display_id(int64_t id) { display_id_ = id; }
72 int64_t display_id() const { return display_id_; } 72 int64_t display_id() const { return display_id_; }
73 display::Display GetDisplay() const; 73 display::Display GetDisplay() const;
74 74
75 // aura::WindowTreeHostPlatform: 75 // aura::WindowTreeHostPlatform:
76 void ShowImpl() override;
77 void HideImpl() override; 76 void HideImpl() override;
78 void SetBoundsInPixels(const gfx::Rect& bounds) override; 77 void SetBoundsInPixels(const gfx::Rect& bounds) override;
79 void DispatchEvent(ui::Event* event) override; 78 void DispatchEvent(ui::Event* event) override;
80 void OnClosed() override; 79 void OnClosed() override;
81 void OnActivationChanged(bool active) override; 80 void OnActivationChanged(bool active) override;
82 void OnCloseRequest() override; 81 void OnCloseRequest() override;
83 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; 82 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
84 83
85 private: 84 private:
86 int64_t display_id_; 85 int64_t display_id_;
87 86
88 WindowTreeHostMusDelegate* delegate_; 87 WindowTreeHostMusDelegate* delegate_;
89 88
90 bool in_set_bounds_from_server_ = false; 89 bool in_set_bounds_from_server_ = false;
91 90
92 std::unique_ptr<InputMethodMus> input_method_; 91 std::unique_ptr<InputMethodMus> input_method_;
93 92
94 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 93 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
95 }; 94 };
96 95
97 } // namespace aura 96 } // namespace aura
98 97
99 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 98 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698