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

Unified Diff: chrome/browser/extensions/window_controller.h

Issue 10735061: Move ExtensionWindowController and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/extensions/window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/window_controller.h
diff --git a/chrome/browser/extensions/extension_window_controller.h b/chrome/browser/extensions/window_controller.h
similarity index 81%
rename from chrome/browser/extensions/extension_window_controller.h
rename to chrome/browser/extensions/window_controller.h
index 8406dbe5ea508c0b48dd91018a790a227c3c17ef..6e82bed8860cb248c1b1b1735e84a41c2f91faa0 100644
--- a/chrome/browser/extensions/extension_window_controller.h
+++ b/chrome/browser/extensions/window_controller.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WINDOW_CONTROLLER_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_WINDOW_CONTROLLER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
+#define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
#include <string>
@@ -20,25 +20,24 @@ namespace base {
class DictionaryValue;
}
-namespace extensions {
-class Extension;
-}
-
namespace gfx {
class Rect;
}
+namespace extensions {
+class Extension;
+
// This API needs to be implemented by any window that might be accessed
// through chrome.windows or chrome.tabs (e.g. browser windows and panels).
-class ExtensionWindowController {
+class WindowController {
public:
enum Reason {
REASON_NONE,
REASON_NOT_EDITABLE,
};
- ExtensionWindowController(BaseWindow* window, Profile* profile);
- virtual ~ExtensionWindowController();
+ WindowController(BaseWindow* window, Profile* profile);
+ virtual ~WindowController();
BaseWindow* window() const { return window_; }
@@ -73,14 +72,15 @@ class ExtensionWindowController {
// Extension/window visibility and ownership is window-specific, subclasses
// need to define this behavior.
- virtual bool IsVisibleToExtension(
- const extensions::Extension* extension) const = 0;
+ virtual bool IsVisibleToExtension(const Extension* extension) const = 0;
private:
BaseWindow* window_;
Profile* profile_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionWindowController);
+ DISALLOW_COPY_AND_ASSIGN(WindowController);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WINDOW_CONTROLLER_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/extensions/window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698