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

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: fix assert at the end of RenderWidget::Resize which fixes the tests on OSX. 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698