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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // Called by WebContentsImpl when the RenderView is first created. This is | 28 // Called by WebContentsImpl when the RenderView is first created. This is |
29 // *not* called for every page load because in some cases | 29 // *not* called for every page load because in some cases |
30 // RenderFrameHostManager will reuse RenderView instances. | 30 // RenderFrameHostManager will reuse RenderView instances. |
31 void RenderViewCreated(RenderViewHost* render_view_host); | 31 void RenderViewCreated(RenderViewHost* render_view_host); |
32 | 32 |
33 // WebUI implementation: | 33 // WebUI implementation: |
34 virtual WebContents* GetWebContents() const OVERRIDE; | 34 virtual WebContents* GetWebContents() const OVERRIDE; |
35 virtual WebUIController* GetController() const OVERRIDE; | 35 virtual WebUIController* GetController() const OVERRIDE; |
36 virtual void SetController(WebUIController* controller) OVERRIDE; | 36 virtual void SetController(WebUIController* controller) OVERRIDE; |
37 virtual ui::ScaleFactor GetDeviceScaleFactor() const OVERRIDE; | 37 virtual float GetDeviceScaleFactor() const OVERRIDE; |
38 virtual const base::string16& GetOverriddenTitle() const OVERRIDE; | 38 virtual const base::string16& GetOverriddenTitle() const OVERRIDE; |
39 virtual void OverrideTitle(const base::string16& title) OVERRIDE; | 39 virtual void OverrideTitle(const base::string16& title) OVERRIDE; |
40 virtual PageTransition GetLinkTransitionType() const OVERRIDE; | 40 virtual PageTransition GetLinkTransitionType() const OVERRIDE; |
41 virtual void SetLinkTransitionType(PageTransition type) OVERRIDE; | 41 virtual void SetLinkTransitionType(PageTransition type) OVERRIDE; |
42 virtual int GetBindings() const OVERRIDE; | 42 virtual int GetBindings() const OVERRIDE; |
43 virtual void SetBindings(int bindings) OVERRIDE; | 43 virtual void SetBindings(int bindings) OVERRIDE; |
44 virtual void OverrideJavaScriptFrame(const std::string& frame_name) OVERRIDE; | 44 virtual void OverrideJavaScriptFrame(const std::string& frame_name) OVERRIDE; |
45 virtual void AddMessageHandler(WebUIMessageHandler* handler) OVERRIDE; | 45 virtual void AddMessageHandler(WebUIMessageHandler* handler) OVERRIDE; |
46 typedef base::Callback<void(const base::ListValue*)> MessageCallback; | 46 typedef base::Callback<void(const base::ListValue*)> MessageCallback; |
47 virtual void RegisterMessageCallback( | 47 virtual void RegisterMessageCallback( |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 std::string frame_name_; | 114 std::string frame_name_; |
115 | 115 |
116 scoped_ptr<WebUIController> controller_; | 116 scoped_ptr<WebUIController> controller_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); | 118 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
122 | 122 |
123 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 123 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
OLD | NEW |