OLD | NEW |
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_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/extension_window_controller.h" | 8 #include "chrome/browser/extensions/window_controller.h" |
9 | 9 |
10 class Browser; | 10 class Browser; |
11 | 11 |
12 class BrowserExtensionWindowController : public ExtensionWindowController { | 12 class BrowserExtensionWindowController : public extensions::WindowController { |
13 public: | 13 public: |
14 explicit BrowserExtensionWindowController(Browser* browser); | 14 explicit BrowserExtensionWindowController(Browser* browser); |
15 | 15 |
16 // ExtensionWindowController implementation. | 16 // extensions::WindowController implementation. |
17 virtual int GetWindowId() const OVERRIDE; | 17 virtual int GetWindowId() const OVERRIDE; |
18 virtual std::string GetWindowTypeText() const OVERRIDE; | 18 virtual std::string GetWindowTypeText() const OVERRIDE; |
19 virtual base::DictionaryValue* CreateWindowValue() const OVERRIDE; | 19 virtual base::DictionaryValue* CreateWindowValue() const OVERRIDE; |
20 virtual base::DictionaryValue* CreateWindowValueWithTabs() const OVERRIDE; | 20 virtual base::DictionaryValue* CreateWindowValueWithTabs() const OVERRIDE; |
21 virtual bool CanClose(Reason* reason) const OVERRIDE; | 21 virtual bool CanClose(Reason* reason) const OVERRIDE; |
22 virtual void SetFullscreenMode(bool is_fullscreen, | 22 virtual void SetFullscreenMode(bool is_fullscreen, |
23 const GURL& extension_url) const OVERRIDE; | 23 const GURL& extension_url) const OVERRIDE; |
24 virtual Browser* GetBrowser() const OVERRIDE; | 24 virtual Browser* GetBrowser() const OVERRIDE; |
25 virtual bool IsVisibleToExtension( | 25 virtual bool IsVisibleToExtension( |
26 const extensions::Extension* extension) const OVERRIDE; | 26 const extensions::Extension* extension) const OVERRIDE; |
27 | 27 |
28 private: | 28 private: |
29 Browser* browser_; | 29 Browser* browser_; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(BrowserExtensionWindowController); | 31 DISALLOW_COPY_AND_ASSIGN(BrowserExtensionWindowController); |
32 }; | 32 }; |
33 | 33 |
34 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ | 34 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ |
OLD | NEW |