| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PUBLIC_TEST_TEST_WEB_UI_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void SetLinkTransitionType(ui::PageTransition type) override {} | 37 void SetLinkTransitionType(ui::PageTransition type) override {} |
| 38 int GetBindings() const override; | 38 int GetBindings() const override; |
| 39 void SetBindings(int bindings) override {} | 39 void SetBindings(int bindings) override {} |
| 40 bool HasRenderFrame() override; | 40 bool HasRenderFrame() override; |
| 41 void AddMessageHandler(WebUIMessageHandler* handler) override; | 41 void AddMessageHandler(WebUIMessageHandler* handler) override; |
| 42 void RegisterMessageCallback(const std::string& message, | 42 void RegisterMessageCallback(const std::string& message, |
| 43 const MessageCallback& callback) override {} | 43 const MessageCallback& callback) override {} |
| 44 void ProcessWebUIMessage(const GURL& source_url, | 44 void ProcessWebUIMessage(const GURL& source_url, |
| 45 const std::string& message, | 45 const std::string& message, |
| 46 const base::ListValue& args) override {} | 46 const base::ListValue& args) override {} |
| 47 bool CanCallJavascript() override; |
| 47 void CallJavascriptFunction(const std::string& function_name) override; | 48 void CallJavascriptFunction(const std::string& function_name) override; |
| 48 void CallJavascriptFunction(const std::string& function_name, | 49 void CallJavascriptFunction(const std::string& function_name, |
| 49 const base::Value& arg1) override; | 50 const base::Value& arg1) override; |
| 50 void CallJavascriptFunction(const std::string& function_name, | 51 void CallJavascriptFunction(const std::string& function_name, |
| 51 const base::Value& arg1, | 52 const base::Value& arg1, |
| 52 const base::Value& arg2) override; | 53 const base::Value& arg2) override; |
| 53 void CallJavascriptFunction(const std::string& function_name, | 54 void CallJavascriptFunction(const std::string& function_name, |
| 54 const base::Value& arg1, | 55 const base::Value& arg1, |
| 55 const base::Value& arg2, | 56 const base::Value& arg2, |
| 56 const base::Value& arg3) override; | 57 const base::Value& arg3) override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 private: | 90 private: |
| 90 ScopedVector<CallData> call_data_; | 91 ScopedVector<CallData> call_data_; |
| 91 ScopedVector<WebUIMessageHandler> handlers_; | 92 ScopedVector<WebUIMessageHandler> handlers_; |
| 92 base::string16 temp_string_; | 93 base::string16 temp_string_; |
| 93 WebContents* web_contents_; | 94 WebContents* web_contents_; |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace content | 97 } // namespace content |
| 97 | 98 |
| 98 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ | 99 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ |
| OLD | NEW |