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

Side by Side Diff: chrome/browser/cocoa/browser_window_cocoa.h

Issue 42190: Linux accelerators cleanup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COCOA_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
7 7
8 #include "chrome/browser/browser_window.h" 8 #include "chrome/browser/browser_window.h"
9 9
10 @class BrowserWindowController; 10 @class BrowserWindowController;
11 @class NSWindow; 11 @class NSWindow;
12 12
13 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and 13 // An implementation of BrowserWindow for Cocoa. Bridges between C++ and
14 // the Cocoa NSWindow. Cross-platform code will interact with this object when 14 // the Cocoa NSWindow. Cross-platform code will interact with this object when
15 // it needs to manipulate the window. 15 // it needs to manipulate the window.
16 16
17 class BrowserWindowCocoa : public BrowserWindow { 17 class BrowserWindowCocoa : public BrowserWindow {
18 public: 18 public:
19 BrowserWindowCocoa(BrowserWindowController* controller, NSWindow* window); 19 BrowserWindowCocoa(BrowserWindowController* controller, NSWindow* window);
20 virtual ~BrowserWindowCocoa(); 20 virtual ~BrowserWindowCocoa();
21 21
22 // Overridden from BrowserWindow 22 // Overridden from BrowserWindow
23 virtual void Init(); 23 virtual void Init();
24 virtual void Show(); 24 virtual void Show();
25 virtual void SetBounds(const gfx::Rect& bounds); 25 virtual void SetBounds(const gfx::Rect& bounds);
26 virtual void Close(); 26 virtual void Close();
27 virtual void Activate(); 27 virtual void Activate();
28 virtual bool IsActive() const; 28 virtual bool IsActive() const;
29 virtual void FlashFrame(); 29 virtual void FlashFrame();
30 virtual void* GetNativeHandle(); 30 virtual gfx::NativeWindow GetNativeHandle();
31 virtual BrowserWindowTesting* GetBrowserWindowTesting(); 31 virtual BrowserWindowTesting* GetBrowserWindowTesting();
32 virtual StatusBubble* GetStatusBubble(); 32 virtual StatusBubble* GetStatusBubble();
33 virtual void SelectedTabToolbarSizeChanged(bool is_animating); 33 virtual void SelectedTabToolbarSizeChanged(bool is_animating);
34 virtual void UpdateTitleBar(); 34 virtual void UpdateTitleBar();
35 virtual void UpdateLoadingAnimations(bool should_animate); 35 virtual void UpdateLoadingAnimations(bool should_animate);
36 virtual void SetStarredState(bool is_starred); 36 virtual void SetStarredState(bool is_starred);
37 virtual gfx::Rect GetNormalBounds() const; 37 virtual gfx::Rect GetNormalBounds() const;
38 virtual bool IsMaximized() const; 38 virtual bool IsMaximized() const;
39 virtual void SetFullscreen(bool fullscreen); 39 virtual void SetFullscreen(bool fullscreen);
40 virtual bool IsFullscreen() const; 40 virtual bool IsFullscreen() const;
(...skipping 21 matching lines...) Expand all
62 void* parent_window); 62 void* parent_window);
63 protected: 63 protected:
64 virtual void DestroyBrowser(); 64 virtual void DestroyBrowser();
65 65
66 private: 66 private:
67 BrowserWindowController* controller_; // weak, owns us 67 BrowserWindowController* controller_; // weak, owns us
68 NSWindow* window_; // weak, owned by |controller_| 68 NSWindow* window_; // weak, owned by |controller_|
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 71 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698