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

Side by Side Diff: apps/ui/native_app_window.h

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « apps/shell_window.cc ('k') | ash/ash.gyp » ('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_UI_NATIVE_APP_WINDOW_H_ 5 #ifndef APPS_UI_NATIVE_APP_WINDOW_H_
6 #define APPS_UI_NATIVE_APP_WINDOW_H_ 6 #define APPS_UI_NATIVE_APP_WINDOW_H_
7 7
8 #include "apps/shell_window.h" 8 #include "apps/shell_window.h"
9 #include "components/web_modal/web_contents_modal_dialog_host.h" 9 #include "components/web_modal/web_contents_modal_dialog_host.h"
10 #include "ui/base/base_window.h" 10 #include "ui/base/base_window.h"
11 #include "ui/gfx/insets.h" 11 #include "ui/gfx/insets.h"
12 12
13 namespace apps { 13 namespace apps {
14 14
15 // This is an interface to a native implementation of a shell window, used for 15 // This is an interface to a native implementation of a shell window, used for
16 // new-style packaged apps. Shell windows contain a web contents, but no tabs 16 // new-style packaged apps. Shell windows contain a web contents, but no tabs
17 // or URL bar. 17 // or URL bar.
18 class NativeAppWindow : public ui::BaseWindow, 18 class NativeAppWindow : public ui::BaseWindow,
19 public web_modal::WebContentsModalDialogHost { 19 public web_modal::WebContentsModalDialogHost {
20 public: 20 public:
21 // Fullscreen changes may be asynchronous on some platforms. 21 // Sets whether the window is fullscreen and the type of fullscreen.
22 virtual void SetFullscreen(bool fullscreen) = 0; 22 // |fullscreen_types| is a bit field of ShellWindow::FullscreenType.
23 virtual void SetFullscreen(int fullscreen_types) = 0;
24
25 // Returns whether the window is fullscreen or about to enter fullscreen.
23 virtual bool IsFullscreenOrPending() const = 0; 26 virtual bool IsFullscreenOrPending() const = 0;
24 27
25 // Returns true if the window is a panel that has been detached. 28 // Returns true if the window is a panel that has been detached.
26 virtual bool IsDetached() const = 0; 29 virtual bool IsDetached() const = 0;
27 30
28 // Called when the icon of the window changes. 31 // Called when the icon of the window changes.
29 virtual void UpdateWindowIcon() = 0; 32 virtual void UpdateWindowIcon() = 0;
30 33
31 // Called when the title of the window changes. 34 // Called when the title of the window changes.
32 virtual void UpdateWindowTitle() = 0; 35 virtual void UpdateWindowTitle() = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Updates the minimum and maximum size of the native window with the current 67 // Updates the minimum and maximum size of the native window with the current
65 // size constraints. 68 // size constraints.
66 virtual void UpdateWindowMinMaxSize() = 0; 69 virtual void UpdateWindowMinMaxSize() = 0;
67 70
68 virtual ~NativeAppWindow() {} 71 virtual ~NativeAppWindow() {}
69 }; 72 };
70 73
71 } // namespace apps 74 } // namespace apps
72 75
73 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ 76 #endif // APPS_UI_NATIVE_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « apps/shell_window.cc ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698