OLD | NEW |
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_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/browser/hang_monitor/hung_window_detector.h" | 34 #include "chrome/browser/hang_monitor/hung_window_detector.h" |
35 #include "ui/views/controls/menu/native_menu_win.h" | 35 #include "ui/views/controls/menu/native_menu_win.h" |
36 #endif | 36 #endif |
37 | 37 |
38 // NOTE: For more information about the objects and files in this directory, | 38 // NOTE: For more information about the objects and files in this directory, |
39 // view: http://dev.chromium.org/developers/design-documents/browser-window | 39 // view: http://dev.chromium.org/developers/design-documents/browser-window |
40 | 40 |
41 class BookmarkBarView; | 41 class BookmarkBarView; |
42 class Browser; | 42 class Browser; |
43 class BrowserViewLayout; | 43 class BrowserViewLayout; |
44 class BrowserWindowMoveObserver; | |
45 class ContentsContainer; | 44 class ContentsContainer; |
46 class DownloadShelfView; | 45 class DownloadShelfView; |
47 class Extension; | 46 class Extension; |
48 class FullscreenExitBubbleViews; | 47 class FullscreenExitBubbleViews; |
49 class InfoBarContainerView; | 48 class InfoBarContainerView; |
50 class LocationBarView; | 49 class LocationBarView; |
51 class StatusBubbleViews; | 50 class StatusBubbleViews; |
52 class TabContentsContainer; | 51 class TabContentsContainer; |
53 class TabContentsContainer; | 52 class TabContentsContainer; |
54 class TabStripModel; | 53 class TabStripModel; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; | 203 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; |
205 | 204 |
206 // Invoked from the frame when the full screen state changes. This is only | 205 // Invoked from the frame when the full screen state changes. This is only |
207 // used on Linux. | 206 // used on Linux. |
208 void FullScreenStateChanged(); | 207 void FullScreenStateChanged(); |
209 | 208 |
210 // Restores the focused view. This is also used to set the initial focus | 209 // Restores the focused view. This is also used to set the initial focus |
211 // when a new browser window is created. | 210 // when a new browser window is created. |
212 void RestoreFocus(); | 211 void RestoreFocus(); |
213 | 212 |
214 void set_move_observer(BrowserWindowMoveObserver* observer) { | |
215 move_observer_ = observer; | |
216 } | |
217 | |
218 #if defined(USE_ASH) | 213 #if defined(USE_ASH) |
219 LauncherUpdater* icon_updater() const { return icon_updater_.get(); } | 214 LauncherUpdater* icon_updater() const { return icon_updater_.get(); } |
220 #endif | 215 #endif |
221 | 216 |
222 // Overridden from BrowserWindow: | 217 // Overridden from BrowserWindow: |
223 virtual void Show() OVERRIDE; | 218 virtual void Show() OVERRIDE; |
224 virtual void ShowInactive() OVERRIDE; | 219 virtual void ShowInactive() OVERRIDE; |
225 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 220 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
226 virtual void Close() OVERRIDE; | 221 virtual void Close() OVERRIDE; |
227 virtual void Activate() OVERRIDE; | 222 virtual void Activate() OVERRIDE; |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 677 |
683 // Used to measure the loading spinner animation rate. | 678 // Used to measure the loading spinner animation rate. |
684 base::TimeTicks last_animation_time_; | 679 base::TimeTicks last_animation_time_; |
685 | 680 |
686 // If this flag is set then SetFocusToLocationBar() will set focus to the | 681 // If this flag is set then SetFocusToLocationBar() will set focus to the |
687 // location bar even if the browser window is not active. | 682 // location bar even if the browser window is not active. |
688 bool force_location_bar_focus_; | 683 bool force_location_bar_focus_; |
689 | 684 |
690 PendingFullscreenRequest fullscreen_request_; | 685 PendingFullscreenRequest fullscreen_request_; |
691 | 686 |
692 BrowserWindowMoveObserver* move_observer_; | |
693 | |
694 gfx::ScopedSysColorChangeListener color_change_listener_; | 687 gfx::ScopedSysColorChangeListener color_change_listener_; |
695 | 688 |
696 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 689 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
697 }; | 690 }; |
698 | 691 |
699 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 692 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |