OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ |
| 7 |
| 8 #include "chrome/browser/ui/extensions/shell_window.h" |
| 9 #include "chrome/browser/ui/base_window.h" |
| 10 |
| 11 // This is an interface to a native implementation of a shell window, used for |
| 12 // new-style packaged apps. Shell windows contain a web contents, but no tabs |
| 13 // or URL bar. |
| 14 class NativeShellWindow : public BaseWindow { |
| 15 public: |
| 16 // Used by ShellWindow to instantiate the platform-specific ShellWindow code. |
| 17 static NativeShellWindow* Create(ShellWindow* window, |
| 18 const ShellWindow::CreateParams& params); |
| 19 |
| 20 // Called when the title of the window changes. |
| 21 virtual void UpdateWindowTitle() = 0; |
| 22 |
| 23 // Called when the draggable regions are changed. |
| 24 virtual void UpdateDraggableRegions( |
| 25 const std::vector<extensions::DraggableRegion>& regions) {} |
| 26 |
| 27 virtual void SetFullscreen(bool fullscreen) = 0; |
| 28 virtual bool IsFullscreenOrPending() const = 0; |
| 29 |
| 30 virtual ~NativeShellWindow() {} |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_SHELL_WINDOW_H_ |
OLD | NEW |