OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
7 | 7 |
8 #include <wtf/OwnPtr.h> | 8 #include <wtf/OwnPtr.h> |
9 #include <wtf/RefCounted.h> | 9 #include <wtf/RefCounted.h> |
10 | 10 |
11 #include "webkit/api/public/WebPoint.h" | 11 #include "webkit/api/public/WebPoint.h" |
12 #include "webkit/api/public/WebSize.h" | 12 #include "webkit/api/public/WebSize.h" |
13 #include "webkit/api/public/WebString.h" | 13 #include "webkit/api/public/WebString.h" |
14 #include "webkit/api/public/WebView.h" | 14 #include "webkit/api/public/WebView.h" |
| 15 #include "webkit/api/src/EditorClientImpl.h" |
15 #include "webkit/api/src/NotificationPresenterImpl.h" | 16 #include "webkit/api/src/NotificationPresenterImpl.h" |
16 #include "webkit/api/src/WebContextMenuClientImpl.h" | 17 #include "webkit/api/src/WebContextMenuClientImpl.h" |
17 #include "webkit/glue/back_forward_list_client_impl.h" | 18 #include "webkit/glue/back_forward_list_client_impl.h" |
18 #include "webkit/glue/chrome_client_impl.h" | 19 #include "webkit/glue/chrome_client_impl.h" |
19 #include "webkit/glue/dragclient_impl.h" | 20 #include "webkit/glue/dragclient_impl.h" |
20 #include "webkit/glue/editor_client_impl.h" | |
21 #include "webkit/glue/inspector_client_impl.h" | 21 #include "webkit/glue/inspector_client_impl.h" |
22 #include "webkit/glue/webframe_impl.h" | 22 #include "webkit/glue/webframe_impl.h" |
23 | 23 |
24 namespace WebCore { | 24 namespace WebCore { |
25 class ChromiumDataObject; | 25 class ChromiumDataObject; |
26 class Frame; | 26 class Frame; |
27 class HistoryItem; | 27 class HistoryItem; |
28 class HitTestResult; | 28 class HitTestResult; |
29 class KeyboardEvent; | 29 class KeyboardEvent; |
30 class Page; | 30 class Page; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void ModifySelection(uint32 message, | 252 void ModifySelection(uint32 message, |
253 WebCore::Frame* frame, | 253 WebCore::Frame* frame, |
254 const WebCore::PlatformKeyboardEvent& e); | 254 const WebCore::PlatformKeyboardEvent& e); |
255 | 255 |
256 WebKit::WebViewClient* client_; | 256 WebKit::WebViewClient* client_; |
257 | 257 |
258 webkit_glue::BackForwardListClientImpl back_forward_list_client_impl_; | 258 webkit_glue::BackForwardListClientImpl back_forward_list_client_impl_; |
259 ChromeClientImpl chrome_client_impl_; | 259 ChromeClientImpl chrome_client_impl_; |
260 WebKit::WebContextMenuClientImpl context_menu_client_impl_; | 260 WebKit::WebContextMenuClientImpl context_menu_client_impl_; |
261 DragClientImpl drag_client_impl_; | 261 DragClientImpl drag_client_impl_; |
262 EditorClientImpl editor_client_impl_; | 262 WebKit::EditorClientImpl editor_client_impl_; |
263 InspectorClientImpl inspector_client_impl_; | 263 InspectorClientImpl inspector_client_impl_; |
264 | 264 |
265 WebKit::WebSize size_; | 265 WebKit::WebSize size_; |
266 | 266 |
267 WebKit::WebPoint last_mouse_position_; | 267 WebKit::WebPoint last_mouse_position_; |
268 OwnPtr<WebCore::Page> page_; | 268 OwnPtr<WebCore::Page> page_; |
269 | 269 |
270 // This flag is set when a new navigation is detected. It is used to satisfy | 270 // This flag is set when a new navigation is detected. It is used to satisfy |
271 // the corresponding argument to WebFrameClient::didCommitProvisionalLoad. | 271 // the corresponding argument to WebFrameClient::didCommitProvisionalLoad. |
272 bool observed_new_navigation_; | 272 bool observed_new_navigation_; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 static const WebKit::WebInputEvent* current_input_event() { | 392 static const WebKit::WebInputEvent* current_input_event() { |
393 return g_current_input_event; | 393 return g_current_input_event; |
394 } | 394 } |
395 private: | 395 private: |
396 static const WebKit::WebInputEvent* g_current_input_event; | 396 static const WebKit::WebInputEvent* g_current_input_event; |
397 | 397 |
398 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 398 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
399 }; | 399 }; |
400 | 400 |
401 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 401 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
OLD | NEW |