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 #include "chrome/browser/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shellapi.h> | 9 #include <shellapi.h> |
10 #endif // OS_WIN | 10 #endif // OS_WIN |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 WindowOpenDisposition disposition, | 1126 WindowOpenDisposition disposition, |
1127 const gfx::Rect& initial_pos, | 1127 const gfx::Rect& initial_pos, |
1128 bool user_gesture) { | 1128 bool user_gesture) { |
1129 AddNewContents(NULL, new_contents, disposition, initial_pos, user_gesture); | 1129 AddNewContents(NULL, new_contents, disposition, initial_pos, user_gesture); |
1130 } | 1130 } |
1131 | 1131 |
1132 void Browser::CloseTabContents(TabContents* contents) { | 1132 void Browser::CloseTabContents(TabContents* contents) { |
1133 CloseContents(contents); | 1133 CloseContents(contents); |
1134 } | 1134 } |
1135 | 1135 |
1136 void Browser::BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 1136 gfx::NativeWindow Browser::BrowserShowHtmlDialog( |
1137 gfx::NativeWindow parent_window) { | 1137 HtmlDialogUIDelegate* delegate, gfx::NativeWindow parent_window) { |
1138 window_->ShowHTMLDialog(delegate, parent_window); | 1138 return window_->ShowHTMLDialog(delegate, parent_window); |
1139 } | 1139 } |
1140 | 1140 |
1141 void Browser::BrowserRenderWidgetShowing() { | 1141 void Browser::BrowserRenderWidgetShowing() { |
1142 RenderWidgetShowing(); | 1142 RenderWidgetShowing(); |
1143 } | 1143 } |
1144 | 1144 |
1145 void Browser::BookmarkBarSizeChanged(bool is_animating) { | 1145 void Browser::BookmarkBarSizeChanged(bool is_animating) { |
1146 window_->ToolbarSizeChanged(is_animating); | 1146 window_->ToolbarSizeChanged(is_animating); |
1147 } | 1147 } |
1148 | 1148 |
(...skipping 3687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4836 } | 4836 } |
4837 | 4837 |
4838 void Browser::ShowSyncSetup() { | 4838 void Browser::ShowSyncSetup() { |
4839 ProfileSyncService* service = | 4839 ProfileSyncService* service = |
4840 profile()->GetOriginalProfile()->GetProfileSyncService(); | 4840 profile()->GetOriginalProfile()->GetProfileSyncService(); |
4841 if (service->HasSyncSetupCompleted()) | 4841 if (service->HasSyncSetupCompleted()) |
4842 ShowOptionsTab(chrome::kSyncSetupSubPage); | 4842 ShowOptionsTab(chrome::kSyncSetupSubPage); |
4843 else | 4843 else |
4844 service->ShowLoginDialog(); | 4844 service->ShowLoginDialog(); |
4845 } | 4845 } |
OLD | NEW |