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

Side by Side Diff: content/public/renderer/render_view.h

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some TODOs Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/top_controls_state.h" 13 #include "content/public/common/top_controls_state.h"
14 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
15 // TODO(dcheng): Convert back to a forward declare.
16 #include "third_party/WebKit/public/web/WebLocalFrame.h"
15 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" 17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
16 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
17 19
18 struct WebPreferences; 20 struct WebPreferences;
19 21
20 namespace blink { 22 namespace blink {
21 class WebElement; 23 class WebElement;
22 class WebFrame; 24 class WebFrame;
23 class WebNode; 25 class WebNode;
24 class WebString; 26 class WebString;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual bool GetContentStateImmediately() const = 0; 100 virtual bool GetContentStateImmediately() const = 0;
99 101
100 // Filtered time per frame based on UpdateRect messages. 102 // Filtered time per frame based on UpdateRect messages.
101 virtual float GetFilteredTimePerFrame() const = 0; 103 virtual float GetFilteredTimePerFrame() const = 0;
102 104
103 // Returns the current visibility of the WebView. 105 // Returns the current visibility of the WebView.
104 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0; 106 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
105 107
106 // Displays a modal alert dialog containing the given message. Returns 108 // Displays a modal alert dialog containing the given message. Returns
107 // once the user dismisses the dialog. 109 // once the user dismisses the dialog.
108 virtual void RunModalAlertDialog(blink::WebFrame* frame, 110 virtual void RunModalAlertDialog(blink::WebLocalFrame* frame,
109 const blink::WebString& message) = 0; 111 const blink::WebString& message) = 0;
110 112
111 // Used by plugins that load data in this RenderView to update the loading 113 // Used by plugins that load data in this RenderView to update the loading
112 // notifications. 114 // notifications.
113 virtual void DidStartLoading() = 0; 115 virtual void DidStartLoading() = 0;
114 virtual void DidStopLoading() = 0; 116 virtual void DidStopLoading() = 0;
115 117
116 // Notifies the renderer that a paint is to be generated for the size 118 // Notifies the renderer that a paint is to be generated for the size
117 // passed in. 119 // passed in.
118 virtual void Repaint(const gfx::Size& size) = 0; 120 virtual void Repaint(const gfx::Size& size) = 0;
(...skipping 20 matching lines...) Expand all
139 141
140 private: 142 private:
141 // This interface should only be implemented inside content. 143 // This interface should only be implemented inside content.
142 friend class RenderViewImpl; 144 friend class RenderViewImpl;
143 RenderView() {} 145 RenderView() {}
144 }; 146 };
145 147
146 } // namespace content 148 } // namespace content
147 149
148 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 150 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698