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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void WindowDidResignKey(); 64 void WindowDidResignKey();
65 65
66 protected: 66 protected:
67 // ShellWindow implementation. 67 // ShellWindow implementation.
68 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 68 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
69 virtual bool IsFullscreenOrPending() const OVERRIDE; 69 virtual bool IsFullscreenOrPending() const OVERRIDE;
70 70
71 private: 71 private:
72 virtual ~ShellWindowCocoa(); 72 virtual ~ShellWindowCocoa();
73 73
74 // content::WebContentsDelegate implementation.
75 virtual void UpdateDraggableRegions(
76 const std::vector<content::DraggableRegion>& regions) OVERRIDE;
77
74 NSWindow* window() const; 78 NSWindow* window() const;
75 79
76 void InstallView(); 80 void InstallView();
77 void UninstallView(); 81 void UninstallView();
78 82
79 bool has_frame_; 83 bool has_frame_;
80 84
81 bool is_fullscreen_; 85 bool is_fullscreen_;
82 NSRect restored_bounds_; 86 NSRect restored_bounds_;
83 87
84 scoped_nsobject<ShellWindowController> window_controller_; 88 scoped_nsobject<ShellWindowController> window_controller_;
85 NSInteger attention_request_id_; // identifier from requestUserAttention 89 NSInteger attention_request_id_; // identifier from requestUserAttention
86 90
87 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); 91 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa);
88 }; 92 };
89 93
90 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ 94 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698