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

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

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update webcontentsdelegateandroid Created 6 years 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
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 #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 // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 void Browser::EnumerateDirectory(WebContents* web_contents, 1642 void Browser::EnumerateDirectory(WebContents* web_contents,
1643 int request_id, 1643 int request_id,
1644 const base::FilePath& path) { 1644 const base::FilePath& path) {
1645 FileSelectHelper::EnumerateDirectory(web_contents, request_id, path); 1645 FileSelectHelper::EnumerateDirectory(web_contents, request_id, path);
1646 } 1646 }
1647 1647
1648 bool Browser::EmbedsFullscreenWidget() const { 1648 bool Browser::EmbedsFullscreenWidget() const {
1649 return true; 1649 return true;
1650 } 1650 }
1651 1651
1652 void Browser::ToggleFullscreenModeForTab(WebContents* web_contents, 1652 void Browser::EnterFullscreenModeForTab(WebContents* web_contents,
1653 bool enter_fullscreen) { 1653 const GURL& origin) {
1654 fullscreen_controller_->ToggleFullscreenModeForTab(web_contents, 1654 fullscreen_controller_->EnterFullscreenModeForTab(web_contents, origin);
1655 enter_fullscreen); 1655 }
1656
1657 void Browser::ExitFullscreenModeForTab(WebContents* web_contents) {
1658 fullscreen_controller_->ExitFullscreenModeForTab(web_contents);
1656 } 1659 }
1657 1660
1658 bool Browser::IsFullscreenForTabOrPending( 1661 bool Browser::IsFullscreenForTabOrPending(
1659 const WebContents* web_contents) const { 1662 const WebContents* web_contents) const {
1660 return fullscreen_controller_->IsFullscreenForTabOrPending(web_contents); 1663 return fullscreen_controller_->IsFullscreenForTabOrPending(web_contents);
1661 } 1664 }
1662 1665
1663 void Browser::RegisterProtocolHandler(WebContents* web_contents, 1666 void Browser::RegisterProtocolHandler(WebContents* web_contents,
1664 const std::string& protocol, 1667 const std::string& protocol,
1665 const GURL& url, 1668 const GURL& url,
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 if (contents && !allow_js_access) { 2510 if (contents && !allow_js_access) {
2508 contents->web_contents()->GetController().LoadURL( 2511 contents->web_contents()->GetController().LoadURL(
2509 target_url, 2512 target_url,
2510 content::Referrer(), 2513 content::Referrer(),
2511 ui::PAGE_TRANSITION_LINK, 2514 ui::PAGE_TRANSITION_LINK,
2512 std::string()); // No extra headers. 2515 std::string()); // No extra headers.
2513 } 2516 }
2514 2517
2515 return contents != NULL; 2518 return contents != NULL;
2516 } 2519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698