OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 #include "chrome/common/content_settings_types.h" | 43 #include "chrome/common/content_settings_types.h" |
44 #include "chrome/common/extensions/extension_constants.h" | 44 #include "chrome/common/extensions/extension_constants.h" |
45 #include "content/browser/tab_contents/page_navigator.h" | 45 #include "content/browser/tab_contents/page_navigator.h" |
46 #include "content/browser/tab_contents/tab_contents_delegate.h" | 46 #include "content/browser/tab_contents/tab_contents_delegate.h" |
47 #include "content/public/browser/notification_registrar.h" | 47 #include "content/public/browser/notification_registrar.h" |
48 #include "content/public/common/page_transition_types.h" | 48 #include "content/public/common/page_transition_types.h" |
49 #include "content/public/common/page_zoom.h" | 49 #include "content/public/common/page_zoom.h" |
50 #include "ui/base/ui_base_types.h" | 50 #include "ui/base/ui_base_types.h" |
51 #include "ui/gfx/rect.h" | 51 #include "ui/gfx/rect.h" |
52 | 52 |
53 #if defined(OS_CHROMEOS) | |
54 #include "chrome/browser/chromeos/frame/bubble_window_style.h" | |
55 #endif | |
56 | |
53 class BrowserSyncedWindowDelegate; | 57 class BrowserSyncedWindowDelegate; |
54 class BrowserTabRestoreServiceDelegate; | 58 class BrowserTabRestoreServiceDelegate; |
55 class BrowserWindow; | 59 class BrowserWindow; |
56 class Extension; | 60 class Extension; |
57 class FindBarController; | 61 class FindBarController; |
58 class InstantController; | 62 class InstantController; |
59 class InstantUnloadHandler; | 63 class InstantUnloadHandler; |
60 class PrefService; | 64 class PrefService; |
61 class Profile; | 65 class Profile; |
62 class SessionStorageNamespace; | 66 class SessionStorageNamespace; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
444 void AddTabContents(TabContents* new_contents, | 448 void AddTabContents(TabContents* new_contents, |
445 WindowOpenDisposition disposition, | 449 WindowOpenDisposition disposition, |
446 const gfx::Rect& initial_pos, | 450 const gfx::Rect& initial_pos, |
447 bool user_gesture); | 451 bool user_gesture); |
448 void CloseTabContents(TabContents* contents); | 452 void CloseTabContents(TabContents* contents); |
449 | 453 |
450 // Shows a dialog with HTML content and returns it. |delegate| contains a | 454 // Shows a dialog with HTML content and returns it. |delegate| contains a |
451 // pointer to the delegate who knows how to display the dialog (which file | 455 // pointer to the delegate who knows how to display the dialog (which file |
452 // URL and JSON string input to use during initialization). |parent_window| | 456 // URL and JSON string input to use during initialization). |parent_window| |
453 // is the window that should be parent of the dialog, or NULL for the default. | 457 // is the window that should be parent of the dialog, or NULL for the default. |
458 #if defined(OS_CHROMEOS) | |
459 gfx::NativeWindow BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, | |
flackr
2011/11/10 16:03:16
Unfortunately I am fairly certain that having a di
bshe
2011/11/21 16:09:37
Done.
| |
460 gfx::NativeWindow parent_window, | |
461 chromeos::BubbleWindowStyle style = | |
462 chromeos::STYLE_GENERIC); | |
flackr
2011/11/10 16:03:16
Default argument values are not allowed according
bshe
2011/11/21 16:09:37
Done. Thanks for the link!
| |
463 #else | |
454 gfx::NativeWindow BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 464 gfx::NativeWindow BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
455 gfx::NativeWindow parent_window); | 465 gfx::NativeWindow parent_window); |
466 #endif | |
456 | 467 |
457 // Called when a popup select is about to be displayed. | 468 // Called when a popup select is about to be displayed. |
458 void BrowserRenderWidgetShowing(); | 469 void BrowserRenderWidgetShowing(); |
459 | 470 |
460 // Notification that the bookmark bar has changed size. We need to resize the | 471 // Notification that the bookmark bar has changed size. We need to resize the |
461 // content area and notify our InfoBarContainer. | 472 // content area and notify our InfoBarContainer. |
462 void BookmarkBarSizeChanged(bool is_animating); | 473 void BookmarkBarSizeChanged(bool is_animating); |
463 | 474 |
464 // Replaces the state of the currently selected tab with the session | 475 // Replaces the state of the currently selected tab with the session |
465 // history restored from the SessionRestore system. | 476 // history restored from the SessionRestore system. |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1456 | 1467 |
1457 MouseLockState mouse_lock_state_; | 1468 MouseLockState mouse_lock_state_; |
1458 | 1469 |
1459 // True if the browser window has been shown at least once. | 1470 // True if the browser window has been shown at least once. |
1460 bool window_has_shown_; | 1471 bool window_has_shown_; |
1461 | 1472 |
1462 DISALLOW_COPY_AND_ASSIGN(Browser); | 1473 DISALLOW_COPY_AND_ASSIGN(Browser); |
1463 }; | 1474 }; |
1464 | 1475 |
1465 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1476 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |