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

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
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 virtual void SetFullscreen(ShellWindow::FullscreenType type) = 0;
23 virtual bool IsFullscreenOrPending() const = 0; 23
24 // Returns true if the window supports immersive fullscreen.
benwells 2013/11/13 07:41:27 Maybe this is bikeshedding, but 'immersive fullscr
pkotwicz 2013/11/13 22:06:01 I agree that immersive fullscreen is not a good na
25 virtual bool SupportsImmersiveFullscreen() const = 0;
24 26
25 // Returns true if the window is a panel that has been detached. 27 // Returns true if the window is a panel that has been detached.
26 virtual bool IsDetached() const = 0; 28 virtual bool IsDetached() const = 0;
27 29
28 // Called when the icon of the window changes. 30 // Called when the icon of the window changes.
29 virtual void UpdateWindowIcon() = 0; 31 virtual void UpdateWindowIcon() = 0;
30 32
31 // Called when the title of the window changes. 33 // Called when the title of the window changes.
32 virtual void UpdateWindowTitle() = 0; 34 virtual void UpdateWindowTitle() = 0;
33 35
(...skipping 30 matching lines...) Expand all
64 // Updates the minimum and maximum size of the native window with the current 66 // Updates the minimum and maximum size of the native window with the current
65 // size constraints. 67 // size constraints.
66 virtual void UpdateWindowMinMaxSize() = 0; 68 virtual void UpdateWindowMinMaxSize() = 0;
67 69
68 virtual ~NativeAppWindow() {} 70 virtual ~NativeAppWindow() {}
69 }; 71 };
70 72
71 } // namespace apps 73 } // namespace apps
72 74
73 #endif // APPS_UI_NATIVE_APP_WINDOW_H_ 75 #endif // APPS_UI_NATIVE_APP_WINDOW_H_
OLDNEW
« apps/shell_window.h ('K') | « apps/shell_window.cc ('k') | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698