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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/shell_window_cocoa.h

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to NativeShellWindow Created 8 years, 1 month 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 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // NativeShellWindow implementation. 103 // NativeShellWindow implementation.
104 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 104 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
105 virtual bool IsFullscreenOrPending() const OVERRIDE; 105 virtual bool IsFullscreenOrPending() const OVERRIDE;
106 virtual void UpdateWindowIcon() OVERRIDE; 106 virtual void UpdateWindowIcon() OVERRIDE;
107 virtual void UpdateWindowTitle() OVERRIDE; 107 virtual void UpdateWindowTitle() OVERRIDE;
108 virtual void UpdateDraggableRegions( 108 virtual void UpdateDraggableRegions(
109 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 109 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
110 virtual void HandleKeyboardEvent( 110 virtual void HandleKeyboardEvent(
111 const content::NativeWebKeyboardEvent& event) OVERRIDE; 111 const content::NativeWebKeyboardEvent& event) OVERRIDE;
112 virtual void RenderViewHostChanged() OVERRIDE {} 112 virtual void RenderViewHostChanged() OVERRIDE {}
113 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
113 114
114 private: 115 private:
115 virtual ~ShellWindowCocoa(); 116 virtual ~ShellWindowCocoa();
116 117
117 ShellNSWindow* window() const; 118 ShellNSWindow* window() const;
118 119
119 content::WebContents* web_contents() const { 120 content::WebContents* web_contents() const {
120 return shell_window_->web_contents(); 121 return shell_window_->web_contents();
121 } 122 }
122 const extensions::Extension* extension() const { 123 const extensions::Extension* extension() const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 NSPoint last_mouse_location_; 163 NSPoint last_mouse_location_;
163 164
164 // The Extension Command Registry used to determine which keyboard events to 165 // The Extension Command Registry used to determine which keyboard events to
165 // handle. 166 // handle.
166 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 167 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); 169 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa);
169 }; 170 };
170 171
171 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ 172 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698