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

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

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/window_controller.h ('k') | chrome/browser/extensions/window_controller_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/window_controller.cc
diff --git a/chrome/browser/extensions/extension_window_controller.cc b/chrome/browser/extensions/window_controller.cc
similarity index 69%
rename from chrome/browser/extensions/extension_window_controller.cc
rename to chrome/browser/extensions/window_controller.cc
index 890e9592e7a36623c2408541ee8d3d630e178248..28e1e2e07c96e4261499aaa5f1a02c8a2640b58a 100644
--- a/chrome/browser/extensions/extension_window_controller.cc
+++ b/chrome/browser/extensions/window_controller.cc
@@ -2,36 +2,36 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/extension_window_controller.h"
+#include "chrome/browser/extensions/window_controller.h"
#include "base/values.h"
#include "chrome/browser/extensions/api/tabs/tabs_constants.h"
-#include "chrome/browser/extensions/extension_window_list.h"
+#include "chrome/browser/extensions/window_controller_list.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/base_window.h"
#include "ui/gfx/rect.h"
+namespace extensions {
+
///////////////////////////////////////////////////////////////////////////////
-// ExtensionWindowController
+// WindowController
-ExtensionWindowController::ExtensionWindowController(BaseWindow* window,
- Profile* profile) :
- window_(window),
- profile_(profile) {
- ExtensionWindowList::GetInstance()->AddExtensionWindow(this);
+WindowController::WindowController(BaseWindow* window, Profile* profile)
+ : window_(window), profile_(profile) {
+ WindowControllerList::GetInstance()->AddExtensionWindow(this);
}
-ExtensionWindowController::~ExtensionWindowController() {
- ExtensionWindowList::GetInstance()->RemoveExtensionWindow(this);
+WindowController::~WindowController() {
+ WindowControllerList::GetInstance()->RemoveExtensionWindow(this);
}
-Browser* ExtensionWindowController::GetBrowser() const {
+Browser* WindowController::GetBrowser() const {
return NULL;
}
-namespace keys = extensions::tabs_constants;
+namespace keys = tabs_constants;
-base::DictionaryValue* ExtensionWindowController::CreateWindowValue() const {
+base::DictionaryValue* WindowController::CreateWindowValue() const {
DictionaryValue* result = new DictionaryValue();
result->SetInteger(keys::kIdKey, GetWindowId());
@@ -64,3 +64,5 @@ base::DictionaryValue* ExtensionWindowController::CreateWindowValue() const {
return result;
}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/window_controller.h ('k') | chrome/browser/extensions/window_controller_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698