| 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/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 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 tab_handler_->GetTabStripModel()->DetachTabContentsAt(active_index()); | 1755 tab_handler_->GetTabStripModel()->DetachTabContentsAt(active_index()); |
| 1756 Browser* browser = Browser::Create(profile_); | 1756 Browser* browser = Browser::Create(profile_); |
| 1757 browser->tabstrip_model()->AppendTabContents(contents, true); | 1757 browser->tabstrip_model()->AppendTabContents(contents, true); |
| 1758 browser->window()->Show(); | 1758 browser->window()->Show(); |
| 1759 } | 1759 } |
| 1760 | 1760 |
| 1761 void Browser::ToggleFullscreenMode() { | 1761 void Browser::ToggleFullscreenMode() { |
| 1762 fullscreen_controller_->ToggleFullscreenMode(); | 1762 fullscreen_controller_->ToggleFullscreenMode(); |
| 1763 } | 1763 } |
| 1764 | 1764 |
| 1765 void Browser::ToggleFullscreenModeWithExtension(const Extension& extension) { |
| 1766 fullscreen_controller_->ToggleFullscreenModeWithExtension(extension); |
| 1767 } |
| 1768 |
| 1765 #if defined(OS_MACOSX) | 1769 #if defined(OS_MACOSX) |
| 1766 void Browser::TogglePresentationMode() { | 1770 void Browser::TogglePresentationMode() { |
| 1767 fullscreen_controller_->TogglePresentationMode(); | 1771 fullscreen_controller_->TogglePresentationMode(); |
| 1768 } | 1772 } |
| 1769 #endif | 1773 #endif |
| 1770 | 1774 |
| 1771 #if defined(OS_CHROMEOS) | 1775 #if defined(OS_CHROMEOS) |
| 1772 void Browser::Search() { | 1776 void Browser::Search() { |
| 1773 // Exit fullscreen to show omnibox. | 1777 // Exit fullscreen to show omnibox. |
| 1774 if (window_->IsFullscreen()) { | 1778 if (window_->IsFullscreen()) { |
| (...skipping 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5505 profile()->GetOriginalProfile()); | 5509 profile()->GetOriginalProfile()); |
| 5506 if (service->HasSyncSetupCompleted()) | 5510 if (service->HasSyncSetupCompleted()) |
| 5507 ShowOptionsTab(chrome::kPersonalOptionsSubPage); | 5511 ShowOptionsTab(chrome::kPersonalOptionsSubPage); |
| 5508 else | 5512 else |
| 5509 service->ShowLoginDialog(); | 5513 service->ShowLoginDialog(); |
| 5510 } | 5514 } |
| 5511 | 5515 |
| 5512 void Browser::ToggleSpeechInput() { | 5516 void Browser::ToggleSpeechInput() { |
| 5513 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); | 5517 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); |
| 5514 } | 5518 } |
| OLD | NEW |