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

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

Issue 2400243002: Remove grow box rect support, browser part. (Closed)
Patch Set: . Created 4 years, 2 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
« 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 1518
1519 bool Browser::TakeFocus(content::WebContents* source, 1519 bool Browser::TakeFocus(content::WebContents* source,
1520 bool reverse) { 1520 bool reverse) {
1521 content::NotificationService::current()->Notify( 1521 content::NotificationService::current()->Notify(
1522 chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, 1522 chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
1523 content::Source<Browser>(this), 1523 content::Source<Browser>(this),
1524 content::NotificationService::NoDetails()); 1524 content::NotificationService::NoDetails());
1525 return false; 1525 return false;
1526 } 1526 }
1527 1527
1528 gfx::Rect Browser::GetRootWindowResizerRect() const {
1529 return window_->GetRootWindowResizerRect();
1530 }
1531
1532 void Browser::BeforeUnloadFired(WebContents* web_contents, 1528 void Browser::BeforeUnloadFired(WebContents* web_contents,
1533 bool proceed, 1529 bool proceed,
1534 bool* proceed_to_fire_unload) { 1530 bool* proceed_to_fire_unload) {
1535 if (is_devtools() && DevToolsWindow::HandleBeforeUnload(web_contents, 1531 if (is_devtools() && DevToolsWindow::HandleBeforeUnload(web_contents,
1536 proceed, proceed_to_fire_unload)) 1532 proceed, proceed_to_fire_unload))
1537 return; 1533 return;
1538 1534
1539 if (IsFastTabUnloadEnabled()) { 1535 if (IsFastTabUnloadEnabled()) {
1540 *proceed_to_fire_unload = 1536 *proceed_to_fire_unload =
1541 fast_unload_controller_->BeforeUnloadFired(web_contents, proceed); 1537 fast_unload_controller_->BeforeUnloadFired(web_contents, proceed);
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2574 if (contents && !allow_js_access) { 2570 if (contents && !allow_js_access) {
2575 contents->web_contents()->GetController().LoadURL( 2571 contents->web_contents()->GetController().LoadURL(
2576 target_url, 2572 target_url,
2577 content::Referrer(), 2573 content::Referrer(),
2578 ui::PAGE_TRANSITION_LINK, 2574 ui::PAGE_TRANSITION_LINK,
2579 std::string()); // No extra headers. 2575 std::string()); // No extra headers.
2580 } 2576 }
2581 2577
2582 return contents != NULL; 2578 return contents != NULL;
2583 } 2579 }
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