Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 | 78 |
| 79 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); | 79 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); |
| 80 | 80 |
| 81 // Coordinates are relative to the containing window. | 81 // Coordinates are relative to the containing window. |
| 82 virtual void updateGeometry( | 82 virtual void updateGeometry( |
| 83 const blink::WebRect& frame_rect, | 83 const blink::WebRect& frame_rect, |
| 84 const blink::WebRect& clip_rect, | 84 const blink::WebRect& clip_rect, |
| 85 const blink::WebVector<blink::WebRect>& cut_out_rects, | 85 const blink::WebVector<blink::WebRect>& cut_out_rects, |
| 86 bool is_visible); | 86 bool is_visible); |
| 87 | 87 |
| 88 virtual void updateFocus(bool) {} | 88 virtual void updateFocus(bool); |
| 89 virtual bool hasFocus(); | |
|
Bernhard Bauer
2014/01/25 14:36:37
This method doesn't override a method from WebPlug
Ruiyi Luo
2014/01/26 09:40:28
Remove this function as no need after merging.
| |
| 89 virtual void updateVisibility(bool) {} | 90 virtual void updateVisibility(bool) {} |
| 90 | 91 |
| 91 virtual bool acceptsInputEvents(); | 92 virtual bool acceptsInputEvents(); |
| 92 virtual bool handleInputEvent(const blink::WebInputEvent& event, | 93 virtual bool handleInputEvent(const blink::WebInputEvent& event, |
| 93 blink::WebCursorInfo& cursor_info); | 94 blink::WebCursorInfo& cursor_info); |
| 94 | 95 |
| 95 virtual void didReceiveResponse(const blink::WebURLResponse& response); | 96 virtual void didReceiveResponse(const blink::WebURLResponse& response); |
| 96 virtual void didReceiveData(const char* data, int data_length); | 97 virtual void didReceiveData(const char* data, int data_length); |
| 97 virtual void didFinishLoading(); | 98 virtual void didFinishLoading(); |
| 98 virtual void didFailLoading(const blink::WebURLError& error); | 99 virtual void didFailLoading(const blink::WebURLError& error); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 | 149 |
| 149 // Owned by us, deleted via |close()|. | 150 // Owned by us, deleted via |close()|. |
| 150 blink::WebFrame* web_frame_; | 151 blink::WebFrame* web_frame_; |
| 151 gfx::Rect rect_; | 152 gfx::Rect rect_; |
| 152 | 153 |
| 153 blink::WebURLResponse response_; | 154 blink::WebURLResponse response_; |
| 154 std::list<std::string> data_; | 155 std::list<std::string> data_; |
| 155 bool finished_loading_; | 156 bool finished_loading_; |
| 156 scoped_ptr<blink::WebURLError> error_; | 157 scoped_ptr<blink::WebURLError> error_; |
| 157 blink::WebString old_title_; | 158 blink::WebString old_title_; |
| 159 bool focused_; | |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 162 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |