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

Side by Side Diff: webkit/glue/webworker_impl.cc

Issue 155172: Start using WebCursorInfo from the WebKit API. WebCursorInfo is a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/glue/webwidget_delegate.h ('k') | webkit/tools/test_shell/mac/test_webview_delegate.mm » ('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) 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 #include "GenericWorkerTask.h" 9 #include "GenericWorkerTask.h"
10 #include "KURL.h" 10 #include "KURL.h"
(...skipping 15 matching lines...) Expand all
26 #include "webkit/api/public/WebURL.h" 26 #include "webkit/api/public/WebURL.h"
27 #include "webkit/api/public/WebWorkerClient.h" 27 #include "webkit/api/public/WebWorkerClient.h"
28 #include "webkit/glue/glue_util.h" 28 #include "webkit/glue/glue_util.h"
29 #include "webkit/glue/webdatasource_impl.h" 29 #include "webkit/glue/webdatasource_impl.h"
30 #include "webkit/glue/webframe_impl.h" 30 #include "webkit/glue/webframe_impl.h"
31 #include "webkit/glue/webpreferences.h" 31 #include "webkit/glue/webpreferences.h"
32 #include "webkit/glue/webview.h" 32 #include "webkit/glue/webview.h"
33 #include "webkit/glue/webview_delegate.h" 33 #include "webkit/glue/webview_delegate.h"
34 #include "webkit/glue/webworker_impl.h" 34 #include "webkit/glue/webworker_impl.h"
35 35
36 using WebKit::WebCursorInfo;
37 using WebKit::WebString;
38 using WebKit::WebURL;
36 using WebKit::WebWorker; 39 using WebKit::WebWorker;
37 using WebKit::WebWorkerClient; 40 using WebKit::WebWorkerClient;
38 using WebKit::WebString;
39 using WebKit::WebURL;
40 41
41 #if ENABLE(WORKERS) 42 #if ENABLE(WORKERS)
42 43
43 // Dummy WebViewDelegate - we only need it in Worker process to load a 44 // Dummy WebViewDelegate - we only need it in Worker process to load a
44 // 'shadow page' which will initialize WebCore loader. 45 // 'shadow page' which will initialize WebCore loader.
45 class WorkerWebViewDelegate : public WebViewDelegate { 46 class WorkerWebViewDelegate : public WebViewDelegate {
46 public: 47 public:
47 WorkerWebViewDelegate() {} 48 WorkerWebViewDelegate() {}
48 virtual void AddRef() { } 49 virtual void AddRef() { }
49 virtual void Release() { } 50 virtual void Release() { }
(...skipping 12 matching lines...) Expand all
62 WebKit::WebRect *rect) { } 63 WebKit::WebRect *rect) { }
63 virtual void GetRootWindowResizerRect(WebWidget *webwidget, 64 virtual void GetRootWindowResizerRect(WebWidget *webwidget,
64 WebKit::WebRect *rect) { } 65 WebKit::WebRect *rect) { }
65 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget *webwidget) { 66 virtual WebKit::WebScreenInfo GetScreenInfo(WebWidget *webwidget) {
66 WebKit::WebScreenInfo info; 67 WebKit::WebScreenInfo info;
67 return info; 68 return info;
68 } 69 }
69 virtual void GetWindowRect(WebWidget *webwidget, WebKit::WebRect *rect) { } 70 virtual void GetWindowRect(WebWidget *webwidget, WebKit::WebRect *rect) { }
70 virtual bool IsHidden(WebWidget *webwidget) { return true; } 71 virtual bool IsHidden(WebWidget *webwidget) { return true; }
71 virtual void RunModal(WebWidget *webwidget) { } 72 virtual void RunModal(WebWidget *webwidget) { }
72 virtual void SetCursor(WebWidget *webwidget, const WebCursor &cursor) { } 73 virtual void SetCursor(WebWidget *webwidget, const WebCursorInfo &cursor) { }
73 virtual void SetWindowRect(WebWidget *webwidget, 74 virtual void SetWindowRect(WebWidget *webwidget,
74 const WebKit::WebRect &rect) { } 75 const WebKit::WebRect &rect) { }
75 virtual void Show(WebWidget *webwidget, WindowOpenDisposition disposition) { } 76 virtual void Show(WebWidget *webwidget, WindowOpenDisposition disposition) { }
76 virtual void ShowAsPopupWithItems(WebWidget *webwidget, 77 virtual void ShowAsPopupWithItems(WebWidget *webwidget,
77 const WebKit::WebRect &bounds, 78 const WebKit::WebRect &bounds,
78 int item_height, 79 int item_height,
79 int selected_index, 80 int selected_index,
80 const std::vector<WebMenuItem> &items) { } 81 const std::vector<WebMenuItem> &items) { }
81 // Tell the loader to load the data into the 'shadow page' synchronously, 82 // Tell the loader to load the data into the 'shadow page' synchronously,
82 // so we can grab the resulting Document right after load. 83 // so we can grab the resulting Document right after load.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 376
376 namespace WebKit { 377 namespace WebKit {
377 378
378 WebWorker* WebWorker::create(WebWorkerClient* client) { 379 WebWorker* WebWorker::create(WebWorkerClient* client) {
379 return NULL; 380 return NULL;
380 } 381 }
381 382
382 } 383 }
383 384
384 #endif 385 #endif
OLDNEW
« no previous file with comments | « webkit/glue/webwidget_delegate.h ('k') | webkit/tools/test_shell/mac/test_webview_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698