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

Side by Side Diff: webkit/glue/webview.h

Issue 149620: Use WebWidget from the WebKit API. This change also makes... (Closed) Base URL: svn://svn.chromium.org/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/webtextdirection.h ('k') | webkit/glue/webview_delegate.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) 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_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_
6 #define WEBKIT_GLUE_WEBVIEW_H_ 6 #define WEBKIT_GLUE_WEBVIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "webkit/glue/webwidget.h" 12 #include "webkit/api/public/WebWidget.h"
13 13
14 namespace WebKit { 14 namespace WebKit {
15 class WebDragData; 15 class WebDragData;
16 struct WebPoint; 16 struct WebPoint;
17 } 17 }
18 18
19 struct WebPreferences; 19 struct WebPreferences;
20 class GURL; 20 class GURL;
21 class WebDevToolsAgent; 21 class WebDevToolsAgent;
22 class WebFrame; 22 class WebFrame;
(...skipping 12 matching lines...) Expand all
35 // 35 //
36 // webView = [[WebView alloc] initWithFrame: NSMakeRect (0,0,640,480)]; 36 // webView = [[WebView alloc] initWithFrame: NSMakeRect (0,0,640,480)];
37 // mainFrame = [webView mainFrame]; 37 // mainFrame = [webView mainFrame];
38 // [mainFrame loadRequest:request]; 38 // [mainFrame loadRequest:request];
39 // 39 //
40 // WebViews have a WebViewDelegate that the embedding application implements 40 // WebViews have a WebViewDelegate that the embedding application implements
41 // that are required for tasks like opening new windows and controlling the 41 // that are required for tasks like opening new windows and controlling the
42 // user interface elements in those windows, monitoring the progress of loads, 42 // user interface elements in those windows, monitoring the progress of loads,
43 // monitoring URL changes, and making determinations about how content of 43 // monitoring URL changes, and making determinations about how content of
44 // certain types should be handled. 44 // certain types should be handled.
45 class WebView : public WebWidget { 45 class WebView : public WebKit::WebWidget {
46 public: 46 public:
47 WebView() {} 47 WebView() {}
48 virtual ~WebView() {} 48 virtual ~WebView() {}
49 49
50 // This method creates a WebView that is initially sized to an empty rect. 50 // This method creates a WebView that is initially sized to an empty rect.
51 static WebView* Create(WebViewDelegate* delegate, 51 static WebView* Create(WebViewDelegate* delegate,
52 const WebPreferences& prefs); 52 const WebPreferences& prefs);
53 53
54 // Tells all Page instances of this view to update the visited link state for 54 // Tells all Page instances of this view to update the visited link state for
55 // the specified hash. 55 // the specified hash.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Makes the webview transparent. Useful if you want to have some custom 228 // Makes the webview transparent. Useful if you want to have some custom
229 // background behind it. 229 // background behind it.
230 virtual void SetIsTransparent(bool is_transparent) = 0; 230 virtual void SetIsTransparent(bool is_transparent) = 0;
231 virtual bool GetIsTransparent() const = 0; 231 virtual bool GetIsTransparent() const = 0;
232 232
233 private: 233 private:
234 DISALLOW_COPY_AND_ASSIGN(WebView); 234 DISALLOW_COPY_AND_ASSIGN(WebView);
235 }; 235 };
236 236
237 #endif // WEBKIT_GLUE_WEBVIEW_H_ 237 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW
« no previous file with comments | « webkit/glue/webtextdirection.h ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698