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

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

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 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
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | content/renderer/render_frame_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h" 16 #include "third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h"
17 #include "third_party/WebKit/public/platform/WebVector.h" 17 #include "third_party/WebKit/public/platform/WebVector.h"
18 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" 18 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h"
19 #include "ui/gfx/geometry/rect.h"
19 #include "v8/include/v8.h" 20 #include "v8/include/v8.h"
20 21
21 namespace blink { 22 namespace blink {
22 class WebDataSource; 23 class WebDataSource;
23 class WebFormElement; 24 class WebFormElement;
24 class WebNode; 25 class WebNode;
25 class WebString; 26 class WebString;
26 struct WebURLError; 27 struct WebURLError;
27 } 28 }
28 29
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // Called when the focused node has changed to |node|. 119 // Called when the focused node has changed to |node|.
119 virtual void FocusedNodeChanged(const blink::WebNode& node) {} 120 virtual void FocusedNodeChanged(const blink::WebNode& node) {}
120 121
121 // Called when accessibility is enabled or disabled. 122 // Called when accessibility is enabled or disabled.
122 virtual void AccessibilityModeChanged() {} 123 virtual void AccessibilityModeChanged() {}
123 124
124 // Called when script in the page calls window.print(). 125 // Called when script in the page calls window.print().
125 virtual void ScriptedPrint(bool user_initiated) {} 126 virtual void ScriptedPrint(bool user_initiated) {}
126 127
128 virtual void PrintFrame(const gfx::Rect& rect, int src_id) {}
129
127 // IPC::Listener implementation. 130 // IPC::Listener implementation.
128 bool OnMessageReceived(const IPC::Message& message) override; 131 bool OnMessageReceived(const IPC::Message& message) override;
129 132
130 // IPC::Sender implementation. 133 // IPC::Sender implementation.
131 bool Send(IPC::Message* message) override; 134 bool Send(IPC::Message* message) override;
132 135
133 RenderFrame* render_frame() const; 136 RenderFrame* render_frame() const;
134 int routing_id() const { return routing_id_; } 137 int routing_id() const { return routing_id_; }
135 138
136 protected: 139 protected:
(...skipping 10 matching lines...) Expand all
147 RenderFrame* render_frame_; 150 RenderFrame* render_frame_;
148 // The routing ID of the associated RenderFrame. 151 // The routing ID of the associated RenderFrame.
149 int routing_id_; 152 int routing_id_;
150 153
151 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); 154 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver);
152 }; 155 };
153 156
154 } // namespace content 157 } // namespace content
155 158
156 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ 159 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698