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

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

Issue 11359148: Merge 166410 - Constrained Window Cocoa: Disable fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: Created 8 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 | « no previous file | chrome/browser/ui/browser_command_controller.cc » ('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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 1777
1778 void Browser::SetTabContentBlocked(content::WebContents* web_contents, 1778 void Browser::SetTabContentBlocked(content::WebContents* web_contents,
1779 bool blocked) { 1779 bool blocked) {
1780 int index = tab_strip_model_->GetIndexOfWebContents(web_contents); 1780 int index = tab_strip_model_->GetIndexOfWebContents(web_contents);
1781 if (index == TabStripModel::kNoTab) { 1781 if (index == TabStripModel::kNoTab) {
1782 NOTREACHED(); 1782 NOTREACHED();
1783 return; 1783 return;
1784 } 1784 }
1785 tab_strip_model_->SetTabBlocked(index, blocked); 1785 tab_strip_model_->SetTabBlocked(index, blocked);
1786 command_controller_->PrintingStateChanged(); 1786 command_controller_->PrintingStateChanged();
1787 command_controller_->FullscreenStateChanged();
1787 if (!blocked && chrome::GetActiveWebContents(this) == web_contents) 1788 if (!blocked && chrome::GetActiveWebContents(this) == web_contents)
1788 web_contents->Focus(); 1789 web_contents->Focus();
1789 } 1790 }
1790 1791
1791 bool Browser::GetConstrainedWindowTopCenter(gfx::Point* point) { 1792 bool Browser::GetConstrainedWindowTopCenter(gfx::Point* point) {
1792 int y = 0; 1793 int y = 0;
1793 if (window_->GetConstrainedWindowTopY(&y)) { 1794 if (window_->GetConstrainedWindowTopY(&y)) {
1794 *point = gfx::Point(window_->GetBounds().width() / 2, y); 1795 *point = gfx::Point(window_->GetBounds().width() / 2, y);
1795 return true; 1796 return true;
1796 } 1797 }
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2353 if (contents && !allow_js_access) { 2354 if (contents && !allow_js_access) {
2354 contents->web_contents()->GetController().LoadURL( 2355 contents->web_contents()->GetController().LoadURL(
2355 target_url, 2356 target_url,
2356 content::Referrer(), 2357 content::Referrer(),
2357 content::PAGE_TRANSITION_LINK, 2358 content::PAGE_TRANSITION_LINK,
2358 std::string()); // No extra headers. 2359 std::string()); // No extra headers.
2359 } 2360 }
2360 2361
2361 return contents != NULL; 2362 return contents != NULL;
2362 } 2363 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698