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

Unified Diff: extensions/browser/app_window/app_window_contents.cc

Issue 527693002: Move AppWindowContentsImpl to extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/app_window/app_window_contents.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/app_window/app_window_contents.cc
diff --git a/apps/app_window_contents.cc b/extensions/browser/app_window/app_window_contents.cc
similarity index 90%
rename from apps/app_window_contents.cc
rename to extensions/browser/app_window/app_window_contents.cc
index 8461e2404e0b101c85df1b0d400f580d42ac6302..9f0425a6fe54e6f370625985a155f5763e2e96f3 100644
--- a/apps/app_window_contents.cc
+++ b/extensions/browser/app_window/app_window_contents.cc
@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "apps/app_window_contents.h"
+#include "extensions/browser/app_window/app_window_contents.h"
#include <string>
#include <utility>
-#include "chrome/browser/chrome_notification_types.h"
-#include "chrome/common/extensions/api/app_window.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
@@ -20,10 +18,7 @@
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/common/extension_messages.h"
-namespace app_window = extensions::api::app_window;
-using extensions::AppWindow;
-
-namespace apps {
+namespace extensions {
AppWindowContentsImpl::AppWindowContentsImpl(AppWindow* host) : host_(host) {}
@@ -34,7 +29,7 @@ void AppWindowContentsImpl::Initialize(content::BrowserContext* context,
url_ = url;
extension_function_dispatcher_.reset(
- new extensions::ExtensionFunctionDispatcher(context, this));
+ new ExtensionFunctionDispatcher(context, this));
web_contents_.reset(
content::WebContents::Create(content::WebContents::CreateParams(
@@ -66,7 +61,7 @@ void AppWindowContentsImpl::LoadContents(int32 creator_process_id) {
}
void AppWindowContentsImpl::NativeWindowChanged(
- extensions::NativeAppWindow* native_app_window) {
+ NativeAppWindow* native_app_window) {
base::ListValue args;
base::DictionaryValue* dictionary = new base::DictionaryValue();
args.Append(dictionary);
@@ -112,8 +107,7 @@ bool AppWindowContentsImpl::OnMessageReceived(const IPC::Message& message) {
return handled;
}
-extensions::WindowController*
-AppWindowContentsImpl::GetExtensionWindowController() const {
+WindowController* AppWindowContentsImpl::GetExtensionWindowController() const {
return NULL;
}
@@ -128,7 +122,7 @@ void AppWindowContentsImpl::OnRequest(
}
void AppWindowContentsImpl::UpdateDraggableRegions(
- const std::vector<extensions::DraggableRegion>& regions) {
+ const std::vector<DraggableRegion>& regions) {
host_->UpdateDraggableRegions(regions);
}
@@ -142,4 +136,4 @@ void AppWindowContentsImpl::SuspendRenderViewHost(
rvh->GetProcess()->GetID(), rvh->GetRoutingID()));
}
-} // namespace apps
+} // namespace extensions
« no previous file with comments | « extensions/browser/app_window/app_window_contents.h ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698