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 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4213 | 4213 |
4214 void Browser::CrashedPlugin(WebContents* tab, const FilePath& plugin_path) { | 4214 void Browser::CrashedPlugin(WebContents* tab, const FilePath& plugin_path) { |
4215 CrashedPluginHelper(tab, plugin_path); | 4215 CrashedPluginHelper(tab, plugin_path); |
4216 } | 4216 } |
4217 | 4217 |
4218 void Browser::UpdatePreferredSize(WebContents* source, | 4218 void Browser::UpdatePreferredSize(WebContents* source, |
4219 const gfx::Size& pref_size) { | 4219 const gfx::Size& pref_size) { |
4220 window_->UpdatePreferredSize(source, pref_size); | 4220 window_->UpdatePreferredSize(source, pref_size); |
4221 } | 4221 } |
4222 | 4222 |
| 4223 void Browser::ResizeDueToAutoResize(WebContents* source, |
| 4224 const gfx::Size& new_size) { |
| 4225 window_->ResizeDueToAutoResize(source, new_size); |
| 4226 } |
| 4227 |
4223 void Browser::RequestToLockMouse(WebContents* tab) { | 4228 void Browser::RequestToLockMouse(WebContents* tab) { |
4224 fullscreen_controller_->RequestToLockMouse(tab); | 4229 fullscreen_controller_->RequestToLockMouse(tab); |
4225 } | 4230 } |
4226 | 4231 |
4227 void Browser::LostMouseLock() { | 4232 void Browser::LostMouseLock() { |
4228 fullscreen_controller_->LostMouseLock(); | 4233 fullscreen_controller_->LostMouseLock(); |
4229 } | 4234 } |
4230 | 4235 |
4231 void Browser::OnAcceptFullscreenPermission( | 4236 void Browser::OnAcceptFullscreenPermission( |
4232 const GURL& url, | 4237 const GURL& url, |
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5614 ShowSingletonTabOverwritingNTP(params); | 5619 ShowSingletonTabOverwritingNTP(params); |
5615 } else { | 5620 } else { |
5616 LoginUIServiceFactory::GetForProfile( | 5621 LoginUIServiceFactory::GetForProfile( |
5617 profile()->GetOriginalProfile())->ShowLoginUI(); | 5622 profile()->GetOriginalProfile())->ShowLoginUI(); |
5618 } | 5623 } |
5619 } | 5624 } |
5620 | 5625 |
5621 void Browser::ToggleSpeechInput() { | 5626 void Browser::ToggleSpeechInput() { |
5622 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); | 5627 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); |
5623 } | 5628 } |
OLD | NEW |