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 #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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1099 | 1099 |
1100 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { | 1100 void BrowserView::ConfirmBrowserCloseWithPendingDownloads() { |
1101 DownloadInProgressDialogView::Show(browser_.get(), GetNativeHandle()); | 1101 DownloadInProgressDialogView::Show(browser_.get(), GetNativeHandle()); |
1102 } | 1102 } |
1103 | 1103 |
1104 void BrowserView::ShowCreateWebAppShortcutsDialog( | 1104 void BrowserView::ShowCreateWebAppShortcutsDialog( |
1105 TabContentsWrapper* tab_contents) { | 1105 TabContentsWrapper* tab_contents) { |
1106 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents); | 1106 browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents); |
1107 } | 1107 } |
1108 | 1108 |
1109 void BrowserView::ShowCreateChromeAppShortcutsDialog(Profile* profile, | 1109 void BrowserView::ShowCreateChromeAppShortcutsDialog(Profile* profile, |
sky
2012/05/14 15:00:07
wrap this to next line too.
mitchellwrosen
2012/05/18 22:53:16
Done.
| |
1110 const Extension* app) { | 1110 const extensions::Extension* app) { |
1111 browser::ShowCreateChromeAppShortcutsDialog(GetNativeHandle(), profile, app); | 1111 browser::ShowCreateChromeAppShortcutsDialog(GetNativeHandle(), profile, app); |
1112 } | 1112 } |
1113 | 1113 |
1114 void BrowserView::UserChangedTheme() { | 1114 void BrowserView::UserChangedTheme() { |
1115 frame_->FrameTypeChanged(); | 1115 frame_->FrameTypeChanged(); |
1116 } | 1116 } |
1117 | 1117 |
1118 int BrowserView::GetExtraRenderViewHeight() const { | 1118 int BrowserView::GetExtraRenderViewHeight() const { |
1119 // Currently this is only used on linux. | 1119 // Currently this is only used on linux. |
1120 return 0; | 1120 return 0; |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2405 return; | 2405 return; |
2406 | 2406 |
2407 PasswordGenerationBubbleView* bubble = | 2407 PasswordGenerationBubbleView* bubble = |
2408 new PasswordGenerationBubbleView(bounds, | 2408 new PasswordGenerationBubbleView(bounds, |
2409 this, | 2409 this, |
2410 web_contents->GetRenderViewHost()); | 2410 web_contents->GetRenderViewHost()); |
2411 views::BubbleDelegateView::CreateBubble(bubble); | 2411 views::BubbleDelegateView::CreateBubble(bubble); |
2412 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2412 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
2413 bubble->Show(); | 2413 bubble->Show(); |
2414 } | 2414 } |
OLD | NEW |