Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.h

Issue 67024: Adds some ifdefs so that test_shell can be compiled on linux... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <map> 17 #include <map>
18 18
19 #if defined(OS_LINUX) 19 #if defined(TOOLKIT_GTK)
20 #include <gdk/gdkcursor.h> 20 #include <gdk/gdkcursor.h>
21 #endif 21 #endif
22 22
23 #include "base/basictypes.h" 23 #include "base/basictypes.h"
24 #include "base/ref_counted.h" 24 #include "base/ref_counted.h"
25 #include "webkit/glue/webcursor.h" 25 #include "webkit/glue/webcursor.h"
26 #include "webkit/glue/webview_delegate.h" 26 #include "webkit/glue/webview_delegate.h"
27 #include "webkit/glue/webwidget_delegate.h" 27 #include "webkit/glue/webwidget_delegate.h"
28 #if defined(OS_WIN) 28 #if defined(OS_WIN)
29 #include "webkit/tools/test_shell/drag_delegate.h" 29 #include "webkit/tools/test_shell/drag_delegate.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 shell_(shell), 62 shell_(shell),
63 top_loading_frame_(NULL), 63 top_loading_frame_(NULL),
64 page_id_(-1), 64 page_id_(-1),
65 last_page_id_updated_(-1), 65 last_page_id_updated_(-1),
66 smart_insert_delete_enabled_(true) 66 smart_insert_delete_enabled_(true)
67 #if defined(OS_WIN) 67 #if defined(OS_WIN)
68 , select_trailing_whitespace_enabled_(true) 68 , select_trailing_whitespace_enabled_(true)
69 #else 69 #else
70 , select_trailing_whitespace_enabled_(false) 70 , select_trailing_whitespace_enabled_(false)
71 #endif 71 #endif
72 #if defined(OS_LINUX) 72 #if defined(TOOLKIT_GTK)
73 , cursor_type_(GDK_X_CURSOR) 73 , cursor_type_(GDK_X_CURSOR)
74 #endif 74 #endif
75 { 75 {
76 } 76 }
77 virtual ~TestWebViewDelegate(); 77 virtual ~TestWebViewDelegate();
78 78
79 // WebViewDelegate 79 // WebViewDelegate
80 virtual WebView* CreateWebView(WebView* webview, bool user_gesture); 80 virtual WebView* CreateWebView(WebView* webview, bool user_gesture);
81 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable); 81 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable);
82 virtual WebPluginDelegate* CreatePluginDelegate( 82 virtual WebPluginDelegate* CreatePluginDelegate(
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // true if we want to enable selection of trailing whitespaces 334 // true if we want to enable selection of trailing whitespaces
335 bool select_trailing_whitespace_enabled_; 335 bool select_trailing_whitespace_enabled_;
336 336
337 WebCursor current_cursor_; 337 WebCursor current_cursor_;
338 #if defined(OS_WIN) 338 #if defined(OS_WIN)
339 // Classes needed by drag and drop. 339 // Classes needed by drag and drop.
340 scoped_refptr<TestDragDelegate> drag_delegate_; 340 scoped_refptr<TestDragDelegate> drag_delegate_;
341 scoped_refptr<TestDropDelegate> drop_delegate_; 341 scoped_refptr<TestDropDelegate> drop_delegate_;
342 #endif 342 #endif
343 343
344 #if defined(OS_LINUX) 344 #if defined(TOOLKIT_GTK)
345 // The type of cursor the window is currently using. 345 // The type of cursor the window is currently using.
346 // Used for judging whether a new SetCursor call is actually changing the 346 // Used for judging whether a new SetCursor call is actually changing the
347 // cursor. 347 // cursor.
348 GdkCursorType cursor_type_; 348 GdkCursorType cursor_type_;
349 #endif 349 #endif
350 350
351 CapturedContextMenuEvents captured_context_menu_events_; 351 CapturedContextMenuEvents captured_context_menu_events_;
352 352
353 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 353 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
354 }; 354 };
355 355
356 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 356 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.cc ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698