| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 int GetBindings() const override; | 48 int GetBindings() const override; |
| 49 void SetBindings(int bindings) override; | 49 void SetBindings(int bindings) override; |
| 50 bool HasRenderFrame() override; | 50 bool HasRenderFrame() override; |
| 51 void AddMessageHandler(WebUIMessageHandler* handler) override; | 51 void AddMessageHandler(WebUIMessageHandler* handler) override; |
| 52 typedef base::Callback<void(const base::ListValue*)> MessageCallback; | 52 typedef base::Callback<void(const base::ListValue*)> MessageCallback; |
| 53 void RegisterMessageCallback(const std::string& message, | 53 void RegisterMessageCallback(const std::string& message, |
| 54 const MessageCallback& callback) override; | 54 const MessageCallback& callback) override; |
| 55 void ProcessWebUIMessage(const GURL& source_url, | 55 void ProcessWebUIMessage(const GURL& source_url, |
| 56 const std::string& message, | 56 const std::string& message, |
| 57 const base::ListValue& args) override; | 57 const base::ListValue& args) override; |
| 58 bool CanCallJavascript() override; |
| 58 void CallJavascriptFunction(const std::string& function_name) override; | 59 void CallJavascriptFunction(const std::string& function_name) override; |
| 59 void CallJavascriptFunction(const std::string& function_name, | 60 void CallJavascriptFunction(const std::string& function_name, |
| 60 const base::Value& arg) override; | 61 const base::Value& arg) override; |
| 61 void CallJavascriptFunction(const std::string& function_name, | 62 void CallJavascriptFunction(const std::string& function_name, |
| 62 const base::Value& arg1, | 63 const base::Value& arg1, |
| 63 const base::Value& arg2) override; | 64 const base::Value& arg2) override; |
| 64 void CallJavascriptFunction(const std::string& function_name, | 65 void CallJavascriptFunction(const std::string& function_name, |
| 65 const base::Value& arg1, | 66 const base::Value& arg1, |
| 66 const base::Value& arg2, | 67 const base::Value& arg2, |
| 67 const base::Value& arg3) override; | 68 const base::Value& arg3) override; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 const std::string frame_name_; | 119 const std::string frame_name_; |
| 119 | 120 |
| 120 std::unique_ptr<WebUIController> controller_; | 121 std::unique_ptr<WebUIController> controller_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); | 123 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 } // namespace content | 126 } // namespace content |
| 126 | 127 |
| 127 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 128 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
| OLD | NEW |