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

Unified Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 27029006: apps: Move chrome's ShellWindowFrameView into apps/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove NativeAppWindowViews dependency Created 7 years, 2 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: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
index fd18e0ce06d7c37e9b9359641c466d0f4382a78d..383e82575c16f5cf6cdcee49bbd3dc9aa4738d02 100644
--- a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
@@ -681,6 +681,10 @@ void NativeAppWindowCocoa::UpdateDraggableRegions(
InstallDraggableRegionViews();
}
+SkRegion* NativeAppWindowCocoa::GetDraggableRegion() const {
+ return draggable_region_.get();
+}
+
void NativeAppWindowCocoa::UpdateDraggableRegionsForSystemDrag(
const std::vector<extensions::DraggableRegion>& regions,
const extensions::DraggableRegion* draggable_area) {
@@ -828,6 +832,10 @@ void NativeAppWindowCocoa::RenderViewHostChanged(
web_contents()->GetView()->Focus();
}
+bool NativeAppWindowCocoa::IsFrameless() const {
+ return !has_frame_;
+}
+
gfx::Insets NativeAppWindowCocoa::GetFrameInsets() const {
if (!has_frame_)
return gfx::Insets();

Powered by Google App Engine
This is Rietveld 408576698