OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual ~BrowserView(); | 79 virtual ~BrowserView(); |
80 | 80 |
81 void set_frame(BrowserFrame* frame) { frame_ = frame; } | 81 void set_frame(BrowserFrame* frame) { frame_ = frame; } |
82 BrowserFrame* frame() const { return frame_; } | 82 BrowserFrame* frame() const { return frame_; } |
83 | 83 |
84 // Returns a pointer to the BrowserView* interface implementation (an | 84 // Returns a pointer to the BrowserView* interface implementation (an |
85 // instance of this object, typically) for a given native window, or NULL if | 85 // instance of this object, typically) for a given native window, or NULL if |
86 // there is no such association. | 86 // there is no such association. |
87 static BrowserView* GetBrowserViewForNativeWindow(gfx::NativeWindow window); | 87 static BrowserView* GetBrowserViewForNativeWindow(gfx::NativeWindow window); |
88 | 88 |
| 89 // Returns a Browser instance of this view. |
| 90 Browser* browser() const { return browser_.get(); } |
| 91 |
89 // Returns the show flag that should be used to show the frame containing | 92 // Returns the show flag that should be used to show the frame containing |
90 // this view. | 93 // this view. |
91 int GetShowState() const; | 94 int GetShowState() const; |
92 | 95 |
93 // Called by the frame to notify the BrowserView that it was moved, and that | 96 // Called by the frame to notify the BrowserView that it was moved, and that |
94 // any dependent popup windows should be repositioned. | 97 // any dependent popup windows should be repositioned. |
95 void WindowMoved(); | 98 void WindowMoved(); |
96 | 99 |
97 // Called by the frame to notify the BrowserView that a move or resize was | 100 // Called by the frame to notify the BrowserView that a move or resize was |
98 // initiated. | 101 // initiated. |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 typedef std::set<BrowserBubble*> BubbleSet; | 511 typedef std::set<BrowserBubble*> BubbleSet; |
509 BubbleSet browser_bubbles_; | 512 BubbleSet browser_bubbles_; |
510 | 513 |
511 // The accessible name of this view. | 514 // The accessible name of this view. |
512 std::wstring accessible_name_; | 515 std::wstring accessible_name_; |
513 | 516 |
514 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 517 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
515 }; | 518 }; |
516 | 519 |
517 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 520 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |