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

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

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2978 // We want to handle firing the unload event ourselves since we want to 2978 // We want to handle firing the unload event ourselves since we want to
2979 // fire all the beforeunload events before attempting to fire the unload 2979 // fire all the beforeunload events before attempting to fire the unload
2980 // events should the user cancel closing the browser. 2980 // events should the user cancel closing the browser.
2981 *proceed_to_fire_unload = false; 2981 *proceed_to_fire_unload = false;
2982 return; 2982 return;
2983 } 2983 }
2984 2984
2985 *proceed_to_fire_unload = true; 2985 *proceed_to_fire_unload = true;
2986 } 2986 }
2987 2987
2988 gfx::Rect Browser::GetRootWindowResizerRect() const {
2989 return window_->GetRootWindowResizerRect();
2990 }
2991
2992 void Browser::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 2988 void Browser::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
2993 gfx::NativeWindow parent_window) { 2989 gfx::NativeWindow parent_window) {
2994 window_->ShowHTMLDialog(delegate, parent_window); 2990 window_->ShowHTMLDialog(delegate, parent_window);
2995 } 2991 }
2996 2992
2997 void Browser::SetFocusToLocationBar(bool select_all) { 2993 void Browser::SetFocusToLocationBar(bool select_all) {
2998 // Two differences between this and FocusLocationBar(): 2994 // Two differences between this and FocusLocationBar():
2999 // (1) This doesn't get recorded in user metrics, since it's called 2995 // (1) This doesn't get recorded in user metrics, since it's called
3000 // internally. 2996 // internally.
3001 // (2) This checks whether the location bar can be focused, and if not, clears 2997 // (2) This checks whether the location bar can be focused, and if not, clears
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
4094 NOTREACHED(); 4090 NOTREACHED();
4095 return false; 4091 return false;
4096 } 4092 }
4097 4093
4098 void Browser::CreateInstantIfNecessary() { 4094 void Browser::CreateInstantIfNecessary() {
4099 if (type() == TYPE_NORMAL && InstantController::IsEnabled(profile()) && 4095 if (type() == TYPE_NORMAL && InstantController::IsEnabled(profile()) &&
4100 !profile()->IsOffTheRecord()) { 4096 !profile()->IsOffTheRecord()) {
4101 instant_.reset(new InstantController(profile_, this)); 4097 instant_.reset(new InstantController(profile_, this));
4102 } 4098 }
4103 } 4099 }
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