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 4132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4143 const FilePath& path) { | 4143 const FilePath& path) { |
4144 EnumerateDirectoryHelper(tab, request_id, path); | 4144 EnumerateDirectoryHelper(tab, request_id, path); |
4145 } | 4145 } |
4146 | 4146 |
4147 void Browser::ToggleFullscreenModeForTab(WebContents* tab, | 4147 void Browser::ToggleFullscreenModeForTab(WebContents* tab, |
4148 bool enter_fullscreen) { | 4148 bool enter_fullscreen) { |
4149 fullscreen_controller_->ToggleFullscreenModeForTab(tab, enter_fullscreen); | 4149 fullscreen_controller_->ToggleFullscreenModeForTab(tab, enter_fullscreen); |
4150 } | 4150 } |
4151 | 4151 |
4152 bool Browser::IsFullscreenForTab(const WebContents* tab) const { | 4152 bool Browser::IsFullscreenForTab(const WebContents* tab) const { |
4153 return fullscreen_controller_->IsFullscreenForTab(tab); | 4153 return fullscreen_controller_->IsFullscreenForTabOrPending(tab); |
4154 } | 4154 } |
4155 | 4155 |
4156 void Browser::JSOutOfMemory(WebContents* tab) { | 4156 void Browser::JSOutOfMemory(WebContents* tab) { |
4157 JSOutOfMemoryHelper(tab); | 4157 JSOutOfMemoryHelper(tab); |
4158 } | 4158 } |
4159 | 4159 |
4160 void Browser::RegisterProtocolHandler(WebContents* tab, | 4160 void Browser::RegisterProtocolHandler(WebContents* tab, |
4161 const std::string& protocol, | 4161 const std::string& protocol, |
4162 const GURL& url, | 4162 const GURL& url, |
4163 const string16& title) { | 4163 const string16& title) { |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5620 } else { | 5620 } else { |
5621 LoginUIServiceFactory::GetForProfile( | 5621 LoginUIServiceFactory::GetForProfile( |
5622 profile()->GetOriginalProfile())->ShowLoginUI(); | 5622 profile()->GetOriginalProfile())->ShowLoginUI(); |
5623 } | 5623 } |
5624 #endif | 5624 #endif |
5625 } | 5625 } |
5626 | 5626 |
5627 void Browser::ToggleSpeechInput() { | 5627 void Browser::ToggleSpeechInput() { |
5628 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); | 5628 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); |
5629 } | 5629 } |
OLD | NEW |