| OLD | NEW |
| 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 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Called by WebContentsImpl when the RenderView is first created. This is | 27 // Called by WebContentsImpl when the RenderView is first created. This is |
| 28 // *not* called for every page load because in some cases | 28 // *not* called for every page load because in some cases |
| 29 // RenderViewHostManager will reuse RenderView instances. | 29 // RenderViewHostManager will reuse RenderView instances. |
| 30 void RenderViewCreated(content::RenderViewHost* render_view_host); | 30 void RenderViewCreated(content::RenderViewHost* render_view_host); |
| 31 | 31 |
| 32 // WebUI implementation: | 32 // WebUI implementation: |
| 33 virtual content::WebContents* GetWebContents() const OVERRIDE; | 33 virtual content::WebContents* GetWebContents() const OVERRIDE; |
| 34 virtual content::WebUIController* GetController() const OVERRIDE; | 34 virtual content::WebUIController* GetController() const OVERRIDE; |
| 35 virtual void SetController(content::WebUIController* controller) OVERRIDE; | 35 virtual void SetController(content::WebUIController* controller) OVERRIDE; |
| 36 virtual float GetDeviceScale() const OVERRIDE; |
| 36 virtual bool ShouldHideFavicon() const OVERRIDE; | 37 virtual bool ShouldHideFavicon() const OVERRIDE; |
| 37 virtual void HideFavicon() OVERRIDE; | 38 virtual void HideFavicon() OVERRIDE; |
| 38 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE; | 39 virtual bool ShouldFocusLocationBarByDefault() const OVERRIDE; |
| 39 virtual void FocusLocationBarByDefault() OVERRIDE; | 40 virtual void FocusLocationBarByDefault() OVERRIDE; |
| 40 virtual bool ShouldHideURL() const OVERRIDE; | 41 virtual bool ShouldHideURL() const OVERRIDE; |
| 41 virtual void HideURL() OVERRIDE; | 42 virtual void HideURL() OVERRIDE; |
| 42 virtual const string16& GetOverriddenTitle() const OVERRIDE; | 43 virtual const string16& GetOverriddenTitle() const OVERRIDE; |
| 43 virtual void OverrideTitle(const string16& title) OVERRIDE; | 44 virtual void OverrideTitle(const string16& title) OVERRIDE; |
| 44 virtual content::PageTransition GetLinkTransitionType() const OVERRIDE; | 45 virtual content::PageTransition GetLinkTransitionType() const OVERRIDE; |
| 45 virtual void SetLinkTransitionType(content::PageTransition type) OVERRIDE; | 46 virtual void SetLinkTransitionType(content::PageTransition type) OVERRIDE; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // The path for the iframe this WebUI is embedded in (empty if not in an | 111 // The path for the iframe this WebUI is embedded in (empty if not in an |
| 111 // iframe). | 112 // iframe). |
| 112 std::string frame_xpath_; | 113 std::string frame_xpath_; |
| 113 | 114 |
| 114 scoped_ptr<content::WebUIController> controller_; | 115 scoped_ptr<content::WebUIController> controller_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); | 117 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 120 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
| OLD | NEW |