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

Side by Side Diff: apps/shell_window.h

Issue 26427002: Add always-on-top property to app windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 7 years, 2 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 | « apps/app_window_contents.cc ('k') | apps/shell_window.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 APPS_SHELL_WINDOW_H_ 5 #ifndef APPS_SHELL_WINDOW_H_
6 #define APPS_SHELL_WINDOW_H_ 6 #define APPS_SHELL_WINDOW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/extensions/extension_icon_image.h" 10 #include "chrome/browser/extensions/extension_icon_image.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ui::WindowShowState state; 116 ui::WindowShowState state;
117 117
118 // If true, don't show the window after creation. 118 // If true, don't show the window after creation.
119 bool hidden; 119 bool hidden;
120 120
121 // If true, the window will be resizable by the user. Defaults to true. 121 // If true, the window will be resizable by the user. Defaults to true.
122 bool resizable; 122 bool resizable;
123 123
124 // If true, the window will be focused on creation. Defaults to true. 124 // If true, the window will be focused on creation. Defaults to true.
125 bool focused; 125 bool focused;
126
127 // If true, the window will stay on top of other windows that are not
128 // configured to be always on top. Defaults to false.
129 bool always_on_top;
126 }; 130 };
127 131
128 class Delegate { 132 class Delegate {
129 public: 133 public:
130 virtual ~Delegate(); 134 virtual ~Delegate();
131 135
132 // General initialization. 136 // General initialization.
133 virtual void InitWebContents(content::WebContents* web_contents) = 0; 137 virtual void InitWebContents(content::WebContents* web_contents) = 0;
134 virtual NativeAppWindow* CreateNativeAppWindow( 138 virtual NativeAppWindow* CreateNativeAppWindow(
135 ShellWindow* window, 139 ShellWindow* window,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 385
382 // The window content is visible. 386 // The window content is visible.
383 bool is_content_visible_; 387 bool is_content_visible_;
384 388
385 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 389 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
386 }; 390 };
387 391
388 } // namespace apps 392 } // namespace apps
389 393
390 #endif // APPS_SHELL_WINDOW_H_ 394 #endif // APPS_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « apps/app_window_contents.cc ('k') | apps/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698