| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 typedef base::Callback<Status()> CloserFunc; | 33 typedef base::Callback<Status()> CloserFunc; |
| 34 // Takes ownership of |client|. | 34 // Takes ownership of |client|. |
| 35 WebViewImpl(const std::string& id, | 35 WebViewImpl(const std::string& id, |
| 36 DevToolsClient* client, | 36 DevToolsClient* client, |
| 37 WebViewDelegate* delegate, | 37 WebViewDelegate* delegate, |
| 38 const CloserFunc& closer_func); | 38 const CloserFunc& closer_func); |
| 39 virtual ~WebViewImpl(); | 39 virtual ~WebViewImpl(); |
| 40 | 40 |
| 41 // Overridden from WebView: | 41 // Overridden from WebView: |
| 42 virtual std::string GetId() OVERRIDE; | 42 virtual std::string GetId() OVERRIDE; |
| 43 virtual Status ConnectIfNecessary() OVERRIDE; |
| 43 virtual Status Close() OVERRIDE; | 44 virtual Status Close() OVERRIDE; |
| 44 virtual Status Load(const std::string& url) OVERRIDE; | 45 virtual Status Load(const std::string& url) OVERRIDE; |
| 45 virtual Status Reload() OVERRIDE; | 46 virtual Status Reload() OVERRIDE; |
| 46 virtual Status EvaluateScript(const std::string& frame, | 47 virtual Status EvaluateScript(const std::string& frame, |
| 47 const std::string& expression, | 48 const std::string& expression, |
| 48 scoped_ptr<base::Value>* result) OVERRIDE; | 49 scoped_ptr<base::Value>* result) OVERRIDE; |
| 49 virtual Status CallFunction(const std::string& frame, | 50 virtual Status CallFunction(const std::string& frame, |
| 50 const std::string& function, | 51 const std::string& function, |
| 51 const base::ListValue& args, | 52 const base::ListValue& args, |
| 52 scoped_ptr<base::Value>* result) OVERRIDE; | 53 scoped_ptr<base::Value>* result) OVERRIDE; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 scoped_ptr<base::Value>* result); | 98 scoped_ptr<base::Value>* result); |
| 98 Status GetNodeIdFromFunction(DevToolsClient* client, | 99 Status GetNodeIdFromFunction(DevToolsClient* client, |
| 99 int context_id, | 100 int context_id, |
| 100 const std::string& function, | 101 const std::string& function, |
| 101 const base::ListValue& args, | 102 const base::ListValue& args, |
| 102 int* node_id); | 103 int* node_id); |
| 103 | 104 |
| 104 } // namespace internal | 105 } // namespace internal |
| 105 | 106 |
| 106 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ | 107 #endif // CHROME_TEST_CHROMEDRIVER_WEB_VIEW_IMPL_H_ |
| OLD | NEW |