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

Side by Side Diff: components/exo/shell_surface.h

Issue 2480713003: Window prerequisites for ShelfWindowWatcher panel support. (Closed)
Patch Set: Support and test pre-widget exo ShellSurface::SetApplicationId. Created 4 years, 1 month 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 COMPONENTS_EXO_SHELL_SURFACE_H_ 5 #ifndef COMPONENTS_EXO_SHELL_SURFACE_H_
6 #define COMPONENTS_EXO_SHELL_SURFACE_H_ 6 #define COMPONENTS_EXO_SHELL_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void SetPinned(bool pinned, bool trusted); 117 void SetPinned(bool pinned, bool trusted);
118 118
119 // Set title for surface. 119 // Set title for surface.
120 void SetTitle(const base::string16& title); 120 void SetTitle(const base::string16& title);
121 121
122 // Sets the system modality. 122 // Sets the system modality.
123 void SetSystemModal(bool system_modal); 123 void SetSystemModal(bool system_modal);
124 124
125 // Sets the application ID for the window. The application ID identifies the 125 // Sets the application ID for the window. The application ID identifies the
126 // general class of applications to which the window belongs. 126 // general class of applications to which the window belongs.
127 static void SetApplicationId(aura::Window* window, 127 static void SetApplicationId(aura::Window* window, const std::string& id);
128 std::string* application_id);
129 static const std::string GetApplicationId(aura::Window* window); 128 static const std::string GetApplicationId(aura::Window* window);
130 129
131 // Set application id for surface. 130 // Set the application ID for the surface.
132 void SetApplicationId(const std::string& application_id); 131 void SetApplicationId(const std::string& application_id);
133 132
134 // Start an interactive move of surface. 133 // Start an interactive move of surface.
135 void Move(); 134 void Move();
136 135
137 // Start an interactive resize of surface. |component| is one of the windows 136 // Start an interactive resize of surface. |component| is one of the windows
138 // HT constants (see ui/base/hit_test.h) and describes in what direction the 137 // HT constants (see ui/base/hit_test.h) and describes in what direction the
139 // surface should be resized. 138 // surface should be resized.
140 void Resize(int component); 139 void Resize(int component);
141 140
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 int top_inset_height_ = 0; 300 int top_inset_height_ = 0;
302 int pending_top_inset_height_ = 0; 301 int pending_top_inset_height_ = 0;
303 float rectangular_shadow_background_opacity_ = 1.0; 302 float rectangular_shadow_background_opacity_ = 1.0;
304 303
305 DISALLOW_COPY_AND_ASSIGN(ShellSurface); 304 DISALLOW_COPY_AND_ASSIGN(ShellSurface);
306 }; 305 };
307 306
308 } // namespace exo 307 } // namespace exo
309 308
310 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ 309 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698