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 TabStripModel; | 51 class TabStripModel; |
53 class ToolbarView; | 52 class ToolbarView; |
54 | 53 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; | 202 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; |
204 | 203 |
205 // Invoked from the frame when the full screen state changes. This is only | 204 // Invoked from the frame when the full screen state changes. This is only |
206 // used on Linux. | 205 // used on Linux. |
207 void FullScreenStateChanged(); | 206 void FullScreenStateChanged(); |
208 | 207 |
209 // Restores the focused view. This is also used to set the initial focus | 208 // Restores the focused view. This is also used to set the initial focus |
210 // when a new browser window is created. | 209 // when a new browser window is created. |
211 void RestoreFocus(); | 210 void RestoreFocus(); |
212 | 211 |
213 void set_move_observer(BrowserWindowMoveObserver* observer) { | |
214 move_observer_ = observer; | |
215 } | |
216 | |
217 #if defined(USE_ASH) | 212 #if defined(USE_ASH) |
218 LauncherUpdater* icon_updater() const { return icon_updater_.get(); } | 213 LauncherUpdater* icon_updater() const { return icon_updater_.get(); } |
219 #endif | 214 #endif |
220 | 215 |
221 // Overridden from BrowserWindow: | 216 // Overridden from BrowserWindow: |
222 virtual void Show() OVERRIDE; | 217 virtual void Show() OVERRIDE; |
223 virtual void ShowInactive() OVERRIDE; | 218 virtual void ShowInactive() OVERRIDE; |
224 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 219 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
225 virtual void Close() OVERRIDE; | 220 virtual void Close() OVERRIDE; |
226 virtual void Activate() OVERRIDE; | 221 virtual void Activate() OVERRIDE; |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 | 676 |
682 // Used to measure the loading spinner animation rate. | 677 // Used to measure the loading spinner animation rate. |
683 base::TimeTicks last_animation_time_; | 678 base::TimeTicks last_animation_time_; |
684 | 679 |
685 // If this flag is set then SetFocusToLocationBar() will set focus to the | 680 // If this flag is set then SetFocusToLocationBar() will set focus to the |
686 // location bar even if the browser window is not active. | 681 // location bar even if the browser window is not active. |
687 bool force_location_bar_focus_; | 682 bool force_location_bar_focus_; |
688 | 683 |
689 PendingFullscreenRequest fullscreen_request_; | 684 PendingFullscreenRequest fullscreen_request_; |
690 | 685 |
691 BrowserWindowMoveObserver* move_observer_; | |
692 | |
693 gfx::ScopedSysColorChangeListener color_change_listener_; | 686 gfx::ScopedSysColorChangeListener color_change_listener_; |
694 | 687 |
695 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 688 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
696 }; | 689 }; |
697 | 690 |
698 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 691 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |