| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // TestWebViewDelegate class: | 5 // TestWebViewDelegate class: |
| 6 // This class implements the WebViewDelegate methods for the test shell. One | 6 // This class implements the WebViewDelegate methods for the test shell. One |
| 7 // instance is owned by each TestShell. | 7 // instance is owned by each TestShell. |
| 8 | 8 |
| 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 #include <windows.h> | 15 #include <windows.h> |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 #include <map> | 18 #include <map> |
| 19 #include <string> | 19 #include <string> |
| 20 | 20 |
| 21 #if defined(OS_LINUX) | 21 #if defined(TOOLKIT_USES_GTK) |
| 22 #include <gdk/gdkcursor.h> | 22 #include <gdk/gdkcursor.h> |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 #include "base/basictypes.h" | 25 #include "base/basictypes.h" |
| 26 #include "base/scoped_ptr.h" | 26 #include "base/scoped_ptr.h" |
| 27 #include "base/weak_ptr.h" | 27 #include "base/weak_ptr.h" |
| 28 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" | 28 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
| 29 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" | 29 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" |
| 30 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
| 31 #if defined(OS_MACOSX) | 31 #if defined(OS_MACOSX) |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 WebKit::WebRect fake_rect_; | 346 WebKit::WebRect fake_rect_; |
| 347 bool using_fake_rect_; | 347 bool using_fake_rect_; |
| 348 | 348 |
| 349 #if defined(OS_WIN) | 349 #if defined(OS_WIN) |
| 350 // Classes needed by drag and drop. | 350 // Classes needed by drag and drop. |
| 351 scoped_refptr<TestDragDelegate> drag_delegate_; | 351 scoped_refptr<TestDragDelegate> drag_delegate_; |
| 352 scoped_refptr<TestDropDelegate> drop_delegate_; | 352 scoped_refptr<TestDropDelegate> drop_delegate_; |
| 353 #endif | 353 #endif |
| 354 | 354 |
| 355 #if defined(OS_LINUX) | 355 #if defined(TOOLKIT_USES_GTK) |
| 356 // The type of cursor the window is currently using. | 356 // The type of cursor the window is currently using. |
| 357 // Used for judging whether a new SetCursor call is actually changing the | 357 // Used for judging whether a new SetCursor call is actually changing the |
| 358 // cursor. | 358 // cursor. |
| 359 GdkCursorType cursor_type_; | 359 GdkCursorType cursor_type_; |
| 360 #endif | 360 #endif |
| 361 | 361 |
| 362 #if defined(OS_MACOSX) | 362 #if defined(OS_MACOSX) |
| 363 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; | 363 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; |
| 364 WebKit::WebRect popup_bounds_; | 364 WebKit::WebRect popup_bounds_; |
| 365 #endif | 365 #endif |
| 366 | 366 |
| 367 // true if we want to enable smart insert/delete. | 367 // true if we want to enable smart insert/delete. |
| 368 bool smart_insert_delete_enabled_; | 368 bool smart_insert_delete_enabled_; |
| 369 | 369 |
| 370 // true if we want to enable selection of trailing whitespaces | 370 // true if we want to enable selection of trailing whitespaces |
| 371 bool select_trailing_whitespace_enabled_; | 371 bool select_trailing_whitespace_enabled_; |
| 372 | 372 |
| 373 // true if we should block any redirects | 373 // true if we should block any redirects |
| 374 bool block_redirects_; | 374 bool block_redirects_; |
| 375 | 375 |
| 376 // Edit command associated to the current keyboard event. | 376 // Edit command associated to the current keyboard event. |
| 377 std::string edit_command_name_; | 377 std::string edit_command_name_; |
| 378 std::string edit_command_value_; | 378 std::string edit_command_value_; |
| 379 | 379 |
| 380 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 380 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 383 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |