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

Side by Side Diff: components/mus/public/cpp/lib/window_private.h

Issue 1811913004: mus: Allow SetModal to fail gracefully (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed constructor/destructor Created 4 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void LocalDestroy() { window_->LocalDestroy(); } 56 void LocalDestroy() { window_->LocalDestroy(); }
57 void LocalAddChild(Window* child) { window_->LocalAddChild(child); } 57 void LocalAddChild(Window* child) { window_->LocalAddChild(child); }
58 void LocalRemoveChild(Window* child) { window_->LocalRemoveChild(child); } 58 void LocalRemoveChild(Window* child) { window_->LocalRemoveChild(child); }
59 void LocalAddTransientWindow(Window* child) { 59 void LocalAddTransientWindow(Window* child) {
60 window_->LocalAddTransientWindow(child); 60 window_->LocalAddTransientWindow(child);
61 } 61 }
62 void LocalRemoveTransientWindow(Window* child) { 62 void LocalRemoveTransientWindow(Window* child) {
63 window_->LocalRemoveTransientWindow(child); 63 window_->LocalRemoveTransientWindow(child);
64 } 64 }
65 void LocalUnsetModal() { window_->is_modal_ = false; }
65 void LocalReorder(Window* relative, mojom::OrderDirection direction) { 66 void LocalReorder(Window* relative, mojom::OrderDirection direction) {
66 window_->LocalReorder(relative, direction); 67 window_->LocalReorder(relative, direction);
67 } 68 }
68 void LocalSetBounds(const gfx::Rect& old_bounds, 69 void LocalSetBounds(const gfx::Rect& old_bounds,
69 const gfx::Rect& new_bounds) { 70 const gfx::Rect& new_bounds) {
70 window_->LocalSetBounds(old_bounds, new_bounds); 71 window_->LocalSetBounds(old_bounds, new_bounds);
71 } 72 }
72 void LocalSetClientArea( 73 void LocalSetClientArea(
73 const gfx::Insets& client_area, 74 const gfx::Insets& client_area,
74 const std::vector<gfx::Rect>& additional_client_areas) { 75 const std::vector<gfx::Rect>& additional_client_areas) {
(...skipping 14 matching lines...) Expand all
89 90
90 private: 91 private:
91 Window* window_; 92 Window* window_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 94 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
94 }; 95 };
95 96
96 } // namespace mus 97 } // namespace mus
97 98
98 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 99 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/in_flight_change.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698