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

Side by Side Diff: chrome/browser/ui/cocoa/browser_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_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
7 7
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/public/pref_change_registrar.h" 10 #include "base/prefs/public/pref_change_registrar.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void Show() OVERRIDE; 43 virtual void Show() OVERRIDE;
44 virtual void ShowInactive() OVERRIDE; 44 virtual void ShowInactive() OVERRIDE;
45 virtual void Hide() OVERRIDE; 45 virtual void Hide() OVERRIDE;
46 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 46 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
47 virtual void Close() OVERRIDE; 47 virtual void Close() OVERRIDE;
48 virtual void Activate() OVERRIDE; 48 virtual void Activate() OVERRIDE;
49 virtual void Deactivate() OVERRIDE; 49 virtual void Deactivate() OVERRIDE;
50 virtual bool IsActive() const OVERRIDE; 50 virtual bool IsActive() const OVERRIDE;
51 virtual void FlashFrame(bool flash) OVERRIDE; 51 virtual void FlashFrame(bool flash) OVERRIDE;
52 virtual bool IsAlwaysOnTop() const OVERRIDE; 52 virtual bool IsAlwaysOnTop() const OVERRIDE;
53 virtual gfx::Rect ContentBoundsForWindowBounds(
54 const gfx::Rect& window_bounds) const OVERRIDE;
55 virtual gfx::Rect WindowBoundsForContentBounds(
56 const gfx::Rect& content_bounds) const OVERRIDE;
53 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 57 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
54 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; 58 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE;
55 virtual StatusBubble* GetStatusBubble() OVERRIDE; 59 virtual StatusBubble* GetStatusBubble() OVERRIDE;
56 virtual void UpdateTitleBar() OVERRIDE; 60 virtual void UpdateTitleBar() OVERRIDE;
57 virtual void BookmarkBarStateChanged( 61 virtual void BookmarkBarStateChanged(
58 BookmarkBar::AnimateChangeType change_type) OVERRIDE; 62 BookmarkBar::AnimateChangeType change_type) OVERRIDE;
59 virtual void UpdateDevTools() OVERRIDE; 63 virtual void UpdateDevTools() OVERRIDE;
60 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; 64 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE;
61 virtual void SetStarredState(bool is_starred) OVERRIDE; 65 virtual void SetStarredState(bool is_starred) OVERRIDE;
62 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE; 66 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 PrefChangeRegistrar pref_change_registrar_; 173 PrefChangeRegistrar pref_change_registrar_;
170 Browser* browser_; // weak, owned by controller 174 Browser* browser_; // weak, owned by controller
171 BrowserWindowController* controller_; // weak, owns us 175 BrowserWindowController* controller_; // weak, owns us
172 base::WeakPtrFactory<Browser> confirm_close_factory_; 176 base::WeakPtrFactory<Browser> confirm_close_factory_;
173 scoped_nsobject<NSString> pending_window_title_; 177 scoped_nsobject<NSString> pending_window_title_;
174 ui::WindowShowState initial_show_state_; 178 ui::WindowShowState initial_show_state_;
175 NSInteger attention_request_id_; // identifier from requestUserAttention 179 NSInteger attention_request_id_; // identifier from requestUserAttention
176 }; 180 };
177 181
178 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_ 182 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698