Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 download_shelf_.reset(new DownloadShelfView(browser_.get(), this)); 1178 download_shelf_.reset(new DownloadShelfView(browser_.get(), this));
1179 download_shelf_->set_owned_by_client(); 1179 download_shelf_->set_owned_by_client();
1180 } 1180 }
1181 return download_shelf_.get(); 1181 return download_shelf_.get();
1182 } 1182 }
1183 1183
1184 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { 1184 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() {
1185 DownloadInProgressDialogView::Show(browser_.get(), GetNativeWindow()); 1185 DownloadInProgressDialogView::Show(browser_.get(), GetNativeWindow());
1186 } 1186 }
1187 1187
1188 void BrowserView::ShowCreateWebAppShortcutsDialog(TabContents* tab_contents) {
1189 chrome::ShowCreateWebAppShortcutsDialog(GetNativeWindow(), tab_contents);
1190 }
1191
1192 void BrowserView::ShowCreateChromeAppShortcutsDialog( 1188 void BrowserView::ShowCreateChromeAppShortcutsDialog(
1193 Profile* profile, 1189 Profile* profile,
1194 const extensions::Extension* app) { 1190 const extensions::Extension* app) {
1195 chrome::ShowCreateChromeAppShortcutsDialog(GetNativeWindow(), profile, app); 1191 chrome::ShowCreateChromeAppShortcutsDialog(GetNativeWindow(), profile, app);
1196 } 1192 }
1197 1193
1198 void BrowserView::UserChangedTheme() { 1194 void BrowserView::UserChangedTheme() {
1199 frame_->FrameTypeChanged(); 1195 frame_->FrameTypeChanged();
1200 } 1196 }
1201 1197
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2566 bubble->Show(); 2562 bubble->Show();
2567 } 2563 }
2568 2564
2569 void BrowserView::RestackLocationBarContainer() { 2565 void BrowserView::RestackLocationBarContainer() {
2570 #if defined(USE_AURA) 2566 #if defined(USE_AURA)
2571 if (search_view_controller_.get()) 2567 if (search_view_controller_.get())
2572 search_view_controller_->StackAtTop(); 2568 search_view_controller_->StackAtTop();
2573 #endif 2569 #endif
2574 toolbar_->location_bar_container()->StackAtTop(); 2570 toolbar_->location_bar_container()->StackAtTop();
2575 } 2571 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698