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 CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 bool notify_result; | 62 bool notify_result; |
63 }; | 63 }; |
64 | 64 |
65 // RenderViewObserver implementation. | 65 // RenderViewObserver implementation. |
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
67 virtual void DidStartLoading() OVERRIDE; | 67 virtual void DidStartLoading() OVERRIDE; |
68 virtual void DidStopLoading() OVERRIDE; | 68 virtual void DidStopLoading() OVERRIDE; |
69 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, | 69 virtual void DidCommitProvisionalLoad(WebKit::WebFrame* frame, |
70 bool is_new_navigation) OVERRIDE; | 70 bool is_new_navigation) OVERRIDE; |
71 virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE; | 71 virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE; |
72 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) OVERRIDE; | |
73 virtual void DidHandleGestureEvent( | 72 virtual void DidHandleGestureEvent( |
74 const WebKit::WebGestureEvent& event) OVERRIDE; | 73 const WebKit::WebGestureEvent& event) OVERRIDE; |
75 | 74 |
76 // WebKit::WebPermissionClient implementation. | 75 // WebKit::WebPermissionClient implementation. |
77 virtual bool allowDatabase(WebKit::WebFrame* frame, | 76 virtual bool allowDatabase(WebKit::WebFrame* frame, |
78 const WebKit::WebString& name, | 77 const WebKit::WebString& name, |
79 const WebKit::WebString& display_name, | 78 const WebKit::WebString& display_name, |
80 unsigned long estimated_size) OVERRIDE; | 79 unsigned long estimated_size) OVERRIDE; |
81 virtual bool allowFileSystem(WebKit::WebFrame* frame) OVERRIDE; | 80 virtual bool allowFileSystem(WebKit::WebFrame* frame) OVERRIDE; |
82 virtual bool allowImage(WebKit::WebFrame* frame, | 81 virtual bool allowImage(WebKit::WebFrame* frame, |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // A color page overlay when visually de-emaphasized. | 196 // A color page overlay when visually de-emaphasized. |
198 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 197 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
199 | 198 |
200 // Used to delay calling CapturePageInfo. | 199 // Used to delay calling CapturePageInfo. |
201 base::Timer capture_timer_; | 200 base::Timer capture_timer_; |
202 | 201 |
203 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 202 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
204 }; | 203 }; |
205 | 204 |
206 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 205 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |