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

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

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase 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
« no previous file with comments | « ui/aura/mus/window_tree_client_unittest.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 <map> 10 #include <map>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void SetHitTestMask(const base::Optional<gfx::Rect>& rect); 58 void SetHitTestMask(const base::Optional<gfx::Rect>& rect);
59 59
60 // Intended only for WindowTreeClient to call. 60 // Intended only for WindowTreeClient to call.
61 void set_display_id(int64_t id) { display_id_ = id; } 61 void set_display_id(int64_t id) { display_id_ = id; }
62 int64_t display_id() const { return display_id_; } 62 int64_t display_id() const { return display_id_; }
63 display::Display GetDisplay() const; 63 display::Display GetDisplay() const;
64 64
65 // aura::WindowTreeHostPlatform: 65 // aura::WindowTreeHostPlatform:
66 void ShowImpl() override; 66 void ShowImpl() override;
67 void HideImpl() override; 67 void HideImpl() override;
68 void SetBounds(const gfx::Rect& bounds) override; 68 void SetBoundsInPixels(const gfx::Rect& bounds) override;
69 void DispatchEvent(ui::Event* event) override; 69 void DispatchEvent(ui::Event* event) override;
70 void OnClosed() override; 70 void OnClosed() override;
71 void OnActivationChanged(bool active) override; 71 void OnActivationChanged(bool active) override;
72 void OnCloseRequest() override; 72 void OnCloseRequest() override;
73 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; 73 gfx::ICCProfile GetICCProfileForCurrentDisplay() override;
74 74
75 private: 75 private:
76 int64_t display_id_; 76 int64_t display_id_;
77 77
78 WindowTreeHostMusDelegate* delegate_; 78 WindowTreeHostMusDelegate* delegate_;
79 79
80 bool in_set_bounds_from_server_ = false; 80 bool in_set_bounds_from_server_ = false;
81 81
82 std::unique_ptr<InputMethodMus> input_method_; 82 std::unique_ptr<InputMethodMus> input_method_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 84 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
85 }; 85 };
86 86
87 } // namespace aura 87 } // namespace aura
88 88
89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_ 89 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client_unittest.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