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

Side by Side Diff: chrome/browser/ui/extensions/native_app_window.h

Issue 16702003: Move ShellWindow into apps component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yar Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
7 7
8 #include "chrome/browser/ui/extensions/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 // This is an interface to a native implementation of a shell window, used for 13 // This is an interface to a native implementation of a shell window, used for
14 // new-style packaged apps. Shell windows contain a web contents, but no tabs 14 // new-style packaged apps. Shell windows contain a web contents, but no tabs
15 // or URL bar. 15 // or URL bar.
16 class NativeAppWindow : public ui::BaseWindow, 16 class NativeAppWindow : public ui::BaseWindow,
17 public web_modal::WebContentsModalDialogHost { 17 public web_modal::WebContentsModalDialogHost {
18 public: 18 public:
19 // Used by ShellWindow to instantiate the platform-specific ShellWindow code. 19 // Used by apps::ShellWindow to instantiate the platform-specific
20 static NativeAppWindow* Create(ShellWindow* window, 20 // apps::ShellWindow code.
21 const ShellWindow::CreateParams& params); 21 static NativeAppWindow* Create(apps::ShellWindow* window,
22 const apps::ShellWindow::CreateParams& params);
22 23
23 // Called when the draggable regions are changed. 24 // Called when the draggable regions are changed.
24 virtual void UpdateDraggableRegions( 25 virtual void UpdateDraggableRegions(
25 const std::vector<extensions::DraggableRegion>& regions) = 0; 26 const std::vector<extensions::DraggableRegion>& regions) = 0;
26 27
27 virtual void SetFullscreen(bool fullscreen) = 0; 28 virtual void SetFullscreen(bool fullscreen) = 0;
28 virtual bool IsFullscreenOrPending() const = 0; 29 virtual bool IsFullscreenOrPending() const = 0;
29 30
30 // Returns true if the window is a panel that has been detached. 31 // Returns true if the window is a panel that has been detached.
31 virtual bool IsDetached() const = 0; 32 virtual bool IsDetached() const = 0;
(...skipping 14 matching lines...) Expand all
46 virtual void RenderViewHostChanged() = 0; 47 virtual void RenderViewHostChanged() = 0;
47 48
48 // Returns the difference between the window bounds (including titlebar and 49 // Returns the difference between the window bounds (including titlebar and
49 // borders) and the content bounds, if any. 50 // borders) and the content bounds, if any.
50 virtual gfx::Insets GetFrameInsets() const = 0; 51 virtual gfx::Insets GetFrameInsets() const = 0;
51 52
52 virtual ~NativeAppWindow() {} 53 virtual ~NativeAppWindow() {}
53 }; 54 };
54 55
55 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ 56 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/apps_metro_handler_win.cc ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698