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 15 matching lines...) Expand all Loading... |
26 web_contents_ = web_contents; | 26 web_contents_ = web_contents; |
27 } | 27 } |
28 | 28 |
29 // WebUI overrides. | 29 // WebUI overrides. |
30 WebContents* GetWebContents() const override; | 30 WebContents* GetWebContents() const override; |
31 WebUIController* GetController() const override; | 31 WebUIController* GetController() const override; |
32 void SetController(WebUIController* controller) override {} | 32 void SetController(WebUIController* controller) override {} |
33 float GetDeviceScaleFactor() const override; | 33 float GetDeviceScaleFactor() const override; |
34 const base::string16& GetOverriddenTitle() const override; | 34 const base::string16& GetOverriddenTitle() const override; |
35 void OverrideTitle(const base::string16& title) override {} | 35 void OverrideTitle(const base::string16& title) override {} |
36 ui::PageTransition GetLinkTransitionType() const override; | |
37 void SetLinkTransitionType(ui::PageTransition type) override {} | |
38 int GetBindings() const override; | 36 int GetBindings() const override; |
39 void SetBindings(int bindings) override {} | 37 void SetBindings(int bindings) override {} |
40 bool HasRenderFrame() override; | 38 bool HasRenderFrame() override; |
41 void AddMessageHandler(WebUIMessageHandler* handler) override; | 39 void AddMessageHandler(WebUIMessageHandler* handler) override; |
42 void RegisterMessageCallback(const std::string& message, | 40 void RegisterMessageCallback(const std::string& message, |
43 const MessageCallback& callback) override {} | 41 const MessageCallback& callback) override {} |
44 void ProcessWebUIMessage(const GURL& source_url, | 42 void ProcessWebUIMessage(const GURL& source_url, |
45 const std::string& message, | 43 const std::string& message, |
46 const base::ListValue& args) override {} | 44 const base::ListValue& args) override {} |
47 bool CanCallJavascript() override; | 45 bool CanCallJavascript() override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 private: | 92 private: |
95 ScopedVector<CallData> call_data_; | 93 ScopedVector<CallData> call_data_; |
96 ScopedVector<WebUIMessageHandler> handlers_; | 94 ScopedVector<WebUIMessageHandler> handlers_; |
97 base::string16 temp_string_; | 95 base::string16 temp_string_; |
98 WebContents* web_contents_; | 96 WebContents* web_contents_; |
99 }; | 97 }; |
100 | 98 |
101 } // namespace content | 99 } // namespace content |
102 | 100 |
103 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ | 101 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_UI_H_ |
OLD | NEW |