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

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: add comments 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void Hide() OVERRIDE; 64 virtual void Hide() OVERRIDE;
65 virtual void Close() OVERRIDE; 65 virtual void Close() OVERRIDE;
66 virtual void Activate() OVERRIDE; 66 virtual void Activate() OVERRIDE;
67 virtual void Deactivate() OVERRIDE; 67 virtual void Deactivate() OVERRIDE;
68 virtual void Maximize() OVERRIDE; 68 virtual void Maximize() OVERRIDE;
69 virtual void Minimize() OVERRIDE; 69 virtual void Minimize() OVERRIDE;
70 virtual void Restore() OVERRIDE; 70 virtual void Restore() OVERRIDE;
71 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 71 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
72 virtual void FlashFrame(bool flash) OVERRIDE; 72 virtual void FlashFrame(bool flash) OVERRIDE;
73 virtual bool IsAlwaysOnTop() const OVERRIDE; 73 virtual bool IsAlwaysOnTop() const OVERRIDE;
74 virtual gfx::Rect ContentBoundsForWindowBounds(
75 const gfx::Rect& window_bounds) const OVERRIDE;
76 virtual gfx::Rect WindowBoundsForContentBounds(
77 const gfx::Rect& content_bounds) const OVERRIDE;
74 78
75 // Called when the window is about to be closed. 79 // Called when the window is about to be closed.
76 void WindowWillClose(); 80 void WindowWillClose();
77 81
78 // Called when the window is focused. 82 // Called when the window is focused.
79 void WindowDidBecomeKey(); 83 void WindowDidBecomeKey();
80 84
81 // Called when the window is defocused. 85 // Called when the window is defocused.
82 void WindowDidResignKey(); 86 void WindowDidResignKey();
83 87
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 NSPoint last_mouse_location_; 163 NSPoint last_mouse_location_;
160 164
161 // The Extension Command Registry used to determine which keyboard events to 165 // The Extension Command Registry used to determine which keyboard events to
162 // handle. 166 // handle.
163 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 167 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
164 168
165 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); 169 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa);
166 }; 170 };
167 171
168 #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