OLD | NEW |
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 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 void Browser::EnumerateDirectory(WebContents* web_contents, | 1656 void Browser::EnumerateDirectory(WebContents* web_contents, |
1657 int request_id, | 1657 int request_id, |
1658 const base::FilePath& path) { | 1658 const base::FilePath& path) { |
1659 FileSelectHelper::EnumerateDirectory(web_contents, request_id, path); | 1659 FileSelectHelper::EnumerateDirectory(web_contents, request_id, path); |
1660 } | 1660 } |
1661 | 1661 |
1662 bool Browser::EmbedsFullscreenWidget() const { | 1662 bool Browser::EmbedsFullscreenWidget() const { |
1663 return true; | 1663 return true; |
1664 } | 1664 } |
1665 | 1665 |
1666 void Browser::ToggleFullscreenModeForTab(WebContents* web_contents, | 1666 void Browser::EnterFullscreenModeForTab(WebContents* web_contents, |
1667 bool enter_fullscreen) { | 1667 const GURL& origin) { |
1668 fullscreen_controller_->ToggleFullscreenModeForTab(web_contents, | 1668 fullscreen_controller_->EnterFullscreenModeForTab(web_contents, origin); |
1669 enter_fullscreen); | 1669 } |
| 1670 |
| 1671 void Browser::ExitFullscreenModeForTab(WebContents* web_contents) { |
| 1672 fullscreen_controller_->ExitFullscreenModeForTab(web_contents); |
1670 } | 1673 } |
1671 | 1674 |
1672 bool Browser::IsFullscreenForTabOrPending( | 1675 bool Browser::IsFullscreenForTabOrPending( |
1673 const WebContents* web_contents) const { | 1676 const WebContents* web_contents) const { |
1674 return fullscreen_controller_->IsFullscreenForTabOrPending(web_contents); | 1677 return fullscreen_controller_->IsFullscreenForTabOrPending(web_contents); |
1675 } | 1678 } |
1676 | 1679 |
1677 void Browser::RegisterProtocolHandler(WebContents* web_contents, | 1680 void Browser::RegisterProtocolHandler(WebContents* web_contents, |
1678 const std::string& protocol, | 1681 const std::string& protocol, |
1679 const GURL& url, | 1682 const GURL& url, |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2509 if (contents && !allow_js_access) { | 2512 if (contents && !allow_js_access) { |
2510 contents->web_contents()->GetController().LoadURL( | 2513 contents->web_contents()->GetController().LoadURL( |
2511 target_url, | 2514 target_url, |
2512 content::Referrer(), | 2515 content::Referrer(), |
2513 ui::PAGE_TRANSITION_LINK, | 2516 ui::PAGE_TRANSITION_LINK, |
2514 std::string()); // No extra headers. | 2517 std::string()); // No extra headers. |
2515 } | 2518 } |
2516 | 2519 |
2517 return contents != NULL; | 2520 return contents != NULL; |
2518 } | 2521 } |
OLD | NEW |