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

Side by Side Diff: chrome/browser/extensions/browser_extension_window_controller.h

Issue 10829186: Tabs API is usable without tabs permission. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: ETU now SetString()'s for empty values Created 8 years, 3 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
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_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/window_controller.h" 8 #include "chrome/browser/extensions/window_controller.h"
9 9
10 class Browser; 10 class Browser;
11 11
12 namespace extensions {
13 class Extension;
14 }
15
12 class BrowserExtensionWindowController : public extensions::WindowController { 16 class BrowserExtensionWindowController : public extensions::WindowController {
13 public: 17 public:
14 explicit BrowserExtensionWindowController(Browser* browser); 18 explicit BrowserExtensionWindowController(Browser* browser);
15 virtual ~BrowserExtensionWindowController(); 19 virtual ~BrowserExtensionWindowController();
16 20
17 // extensions::WindowController implementation. 21 // extensions::WindowController implementation.
18 virtual int GetWindowId() const OVERRIDE; 22 virtual int GetWindowId() const OVERRIDE;
19 virtual std::string GetWindowTypeText() const OVERRIDE; 23 virtual std::string GetWindowTypeText() const OVERRIDE;
20 virtual base::DictionaryValue* CreateWindowValue() const OVERRIDE; 24 virtual base::DictionaryValue* CreateWindowValue() const OVERRIDE;
21 virtual base::DictionaryValue* CreateWindowValueWithTabs() const OVERRIDE; 25 virtual base::DictionaryValue* CreateWindowValueWithTabs(
26 const extensions::Extension* extension) const OVERRIDE;
22 virtual bool CanClose(Reason* reason) const OVERRIDE; 27 virtual bool CanClose(Reason* reason) const OVERRIDE;
23 virtual void SetFullscreenMode(bool is_fullscreen, 28 virtual void SetFullscreenMode(bool is_fullscreen,
24 const GURL& extension_url) const OVERRIDE; 29 const GURL& extension_url) const OVERRIDE;
25 virtual Browser* GetBrowser() const OVERRIDE; 30 virtual Browser* GetBrowser() const OVERRIDE;
26 virtual bool IsVisibleToExtension( 31 virtual bool IsVisibleToExtension(
27 const extensions::Extension* extension) const OVERRIDE; 32 const extensions::Extension* extension) const OVERRIDE;
28 33
29 private: 34 private:
30 Browser* browser_; 35 Browser* browser_;
31 36
32 DISALLOW_COPY_AND_ASSIGN(BrowserExtensionWindowController); 37 DISALLOW_COPY_AND_ASSIGN(BrowserExtensionWindowController);
33 }; 38 };
34 39
35 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_ 40 #endif // CHROME_BROWSER_EXTENSIONS_BROWSER_EXTENSION_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/browser_event_router.cc ('k') | chrome/browser/extensions/browser_extension_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698