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

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

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 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_NATIVE_APP_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const ShellWindow::CreateParams& params); 47 const ShellWindow::CreateParams& params);
48 48
49 // BaseWindow implementation. 49 // BaseWindow implementation.
50 virtual bool IsActive() const OVERRIDE; 50 virtual bool IsActive() const OVERRIDE;
51 virtual bool IsMaximized() const OVERRIDE; 51 virtual bool IsMaximized() const OVERRIDE;
52 virtual bool IsMinimized() const OVERRIDE; 52 virtual bool IsMinimized() const OVERRIDE;
53 virtual bool IsFullscreen() const OVERRIDE; 53 virtual bool IsFullscreen() const OVERRIDE;
54 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 54 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
55 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 55 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
56 virtual gfx::Rect GetBounds() const OVERRIDE; 56 virtual gfx::Rect GetBounds() const OVERRIDE;
57 virtual gfx::Rect GetContentBounds() const OVERRIDE;
57 virtual void Show() OVERRIDE; 58 virtual void Show() OVERRIDE;
58 virtual void ShowInactive() OVERRIDE; 59 virtual void ShowInactive() OVERRIDE;
59 virtual void Hide() OVERRIDE; 60 virtual void Hide() OVERRIDE;
60 virtual void Close() OVERRIDE; 61 virtual void Close() OVERRIDE;
61 virtual void Activate() OVERRIDE; 62 virtual void Activate() OVERRIDE;
62 virtual void Deactivate() OVERRIDE; 63 virtual void Deactivate() OVERRIDE;
63 virtual void Maximize() OVERRIDE; 64 virtual void Maximize() OVERRIDE;
64 virtual void Minimize() OVERRIDE; 65 virtual void Minimize() OVERRIDE;
65 virtual void Restore() OVERRIDE; 66 virtual void Restore() OVERRIDE;
66 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 67 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 NSPoint last_mouse_location_; 166 NSPoint last_mouse_location_;
166 167
167 // The Extension Command Registry used to determine which keyboard events to 168 // The Extension Command Registry used to determine which keyboard events to
168 // handle. 169 // handle.
169 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 170 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 172 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
172 }; 173 };
173 174
174 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 175 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698