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

Unified Diff: components/native_app_window/native_app_window_views.cc

Issue 576863003: Componentize NativeAppWindowViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: components/native_app_window/native_app_window_views.cc
diff --git a/apps/ui/views/native_app_window_views.cc b/components/native_app_window/native_app_window_views.cc
similarity index 98%
rename from apps/ui/views/native_app_window_views.cc
rename to components/native_app_window/native_app_window_views.cc
index b053af5946115bd0983be38fe5ea69e03034a0b9..5d5ac6efa338068d2931f36ab227a42e8e9359c4 100644
--- a/apps/ui/views/native_app_window_views.cc
+++ b/components/native_app_window/native_app_window_views.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "apps/ui/views/native_app_window_views.h"
+#include "components/native_app_window/native_app_window_views.h"
#include "base/threading/sequenced_worker_pool.h"
#include "content/public/browser/render_view_host.h"
@@ -20,9 +20,7 @@
#include "ui/aura/window.h"
#endif
-using extensions::AppWindow;
-
-namespace apps {
+namespace extensions {
NativeAppWindowViews::NativeAppWindowViews()
: app_window_(NULL),
@@ -328,7 +326,7 @@ void NativeAppWindowViews::UpdateBadgeIcon() {
}
void NativeAppWindowViews::UpdateDraggableRegions(
- const std::vector<extensions::DraggableRegion>& regions) {
+ const std::vector<DraggableRegion>& regions) {
// Draggable region is not supported for non-frameless window.
if (!frameless_)
return;
@@ -407,4 +405,4 @@ void NativeAppWindowViews::SetVisibleOnAllWorkspaces(bool always_visible) {
widget_->SetVisibleOnAllWorkspaces(always_visible);
}
-} // namespace apps
+} // namespace extensions
« components/native_app_window.gypi ('K') | « components/native_app_window/native_app_window_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698