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

Unified Diff: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h

Issue 10823195: Draggable region support for frameless app window on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 4 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/extensions/shell_window_cocoa.h
diff --git a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
index a56a3e56c7c472b25460cd625af99bab2dcceb9a..8a1c1aa172f4d293d5544658051d586432fa3b56 100644
--- a/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
+++ b/chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h
@@ -7,8 +7,10 @@
#import <Cocoa/Cocoa.h>
+#include <vector>
Robert Sesek 2012/08/09 14:52:44 Line 9 should be after this, not before.
#include "base/memory/scoped_nsobject.h"
#include "chrome/browser/ui/extensions/shell_window.h"
+#include "chrome/common/extensions/draggable_region.h"
#include "ui/gfx/rect.h"
class Profile;
@@ -70,10 +72,15 @@ class ShellWindowCocoa : public ShellWindow {
private:
virtual ~ShellWindowCocoa();
+ // ShellWindow implementation.
+ virtual void UpdateDraggableRegions(
+ const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
+
NSWindow* window() const;
void InstallView();
void UninstallView();
+ void InstallDraggableRegionViews();
bool has_frame_;
@@ -83,6 +90,8 @@ class ShellWindowCocoa : public ShellWindow {
scoped_nsobject<ShellWindowController> window_controller_;
NSInteger attention_request_id_; // identifier from requestUserAttention
+ std::vector<extensions::DraggableRegion> draggable_regions_;
+
DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa);
};

Powered by Google App Engine
This is Rietveld 408576698