Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Redisable test. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 4173 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 4184
4185 void Browser::CrashedPlugin(WebContents* tab, const FilePath& plugin_path) { 4185 void Browser::CrashedPlugin(WebContents* tab, const FilePath& plugin_path) {
4186 CrashedPluginHelper(tab, plugin_path); 4186 CrashedPluginHelper(tab, plugin_path);
4187 } 4187 }
4188 4188
4189 void Browser::UpdatePreferredSize(WebContents* source, 4189 void Browser::UpdatePreferredSize(WebContents* source,
4190 const gfx::Size& pref_size) { 4190 const gfx::Size& pref_size) {
4191 window_->UpdatePreferredSize(source, pref_size); 4191 window_->UpdatePreferredSize(source, pref_size);
4192 } 4192 }
4193 4193
4194 void Browser::ResizeDueToAutoResize(WebContents* source,
4195 const gfx::Size& new_size) {
4196 window_->ResizeDueToAutoResize(source, new_size);
4197 }
4198
4194 void Browser::RequestToLockMouse(WebContents* tab) { 4199 void Browser::RequestToLockMouse(WebContents* tab) {
4195 fullscreen_controller_->RequestToLockMouse(tab); 4200 fullscreen_controller_->RequestToLockMouse(tab);
4196 } 4201 }
4197 4202
4198 void Browser::LostMouseLock() { 4203 void Browser::LostMouseLock() {
4199 fullscreen_controller_->LostMouseLock(); 4204 fullscreen_controller_->LostMouseLock();
4200 } 4205 }
4201 4206
4202 void Browser::OnAcceptFullscreenPermission( 4207 void Browser::OnAcceptFullscreenPermission(
4203 const GURL& url, 4208 const GURL& url,
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
5585 ShowSingletonTabOverwritingNTP(params); 5590 ShowSingletonTabOverwritingNTP(params);
5586 } else { 5591 } else {
5587 LoginUIServiceFactory::GetForProfile( 5592 LoginUIServiceFactory::GetForProfile(
5588 profile()->GetOriginalProfile())->ShowLoginUI(); 5593 profile()->GetOriginalProfile())->ShowLoginUI();
5589 } 5594 }
5590 } 5595 }
5591 5596
5592 void Browser::ToggleSpeechInput() { 5597 void Browser::ToggleSpeechInput() {
5593 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput(); 5598 GetSelectedWebContents()->GetRenderViewHost()->ToggleSpeechInput();
5594 } 5599 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698