| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/toolbar/toolbar_view.h" | 5 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 } | 413 } |
| 414 | 414 |
| 415 ContentSettingBubbleModelDelegate* | 415 ContentSettingBubbleModelDelegate* |
| 416 ToolbarView::GetContentSettingBubbleModelDelegate() { | 416 ToolbarView::GetContentSettingBubbleModelDelegate() { |
| 417 return browser_->content_setting_bubble_model_delegate(); | 417 return browser_->content_setting_bubble_model_delegate(); |
| 418 } | 418 } |
| 419 | 419 |
| 420 void ToolbarView::ShowWebsiteSettings( | 420 void ToolbarView::ShowWebsiteSettings( |
| 421 content::WebContents* web_contents, | 421 content::WebContents* web_contents, |
| 422 const GURL& virtual_url, | 422 const GURL& virtual_url, |
| 423 const security_state::SecurityStateModel::SecurityInfo& security_info) { | 423 const security_state::SecurityInfo& security_info) { |
| 424 chrome::ShowWebsiteSettings(browser_, web_contents, virtual_url, | 424 chrome::ShowWebsiteSettings(browser_, web_contents, virtual_url, |
| 425 security_info); | 425 security_info); |
| 426 } | 426 } |
| 427 | 427 |
| 428 PageActionImageView* ToolbarView::CreatePageActionImageView( | 428 PageActionImageView* ToolbarView::CreatePageActionImageView( |
| 429 LocationBarView* owner, ExtensionAction* action) { | 429 LocationBarView* owner, ExtensionAction* action) { |
| 430 return new PageActionImageView(owner, action, browser_); | 430 return new PageActionImageView(owner, action, browser_); |
| 431 } | 431 } |
| 432 | 432 |
| 433 //////////////////////////////////////////////////////////////////////////////// | 433 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 if (OutdatedUpgradeBubbleView::IsAvailable()) { | 778 if (OutdatedUpgradeBubbleView::IsAvailable()) { |
| 779 OutdatedUpgradeBubbleView::ShowBubble(app_menu_button_, browser_, | 779 OutdatedUpgradeBubbleView::ShowBubble(app_menu_button_, browser_, |
| 780 auto_update_enabled); | 780 auto_update_enabled); |
| 781 } | 781 } |
| 782 } | 782 } |
| 783 | 783 |
| 784 void ToolbarView::OnShowHomeButtonChanged() { | 784 void ToolbarView::OnShowHomeButtonChanged() { |
| 785 Layout(); | 785 Layout(); |
| 786 SchedulePaint(); | 786 SchedulePaint(); |
| 787 } | 787 } |
| OLD | NEW |