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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 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
« no previous file with comments | « content/common/page_messages.h ('k') | content/public/renderer/render_view.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_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/common/console_message_level.h" 15 #include "content/public/common/console_message_level.h"
16 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
17 #include "ipc/ipc_sender.h" 17 #include "ipc/ipc_sender.h"
18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
18 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 19 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
19 20
20 class GURL; 21 class GURL;
21 22
22 namespace blink { 23 namespace blink {
23 class WebFrame; 24 class WebFrame;
24 class WebLocalFrame; 25 class WebLocalFrame;
25 class WebPlugin; 26 class WebPlugin;
26 class WebURLRequest; 27 class WebURLRequest;
27 class WebURLResponse; 28 class WebURLResponse;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Adds |message| to the DevTools console. 208 // Adds |message| to the DevTools console.
208 virtual void AddMessageToConsole(ConsoleMessageLevel level, 209 virtual void AddMessageToConsole(ConsoleMessageLevel level,
209 const std::string& message) = 0; 210 const std::string& message) = 0;
210 211
211 // Whether or not this frame is using Lo-Fi. 212 // Whether or not this frame is using Lo-Fi.
212 virtual bool IsUsingLoFi() const = 0; 213 virtual bool IsUsingLoFi() const = 0;
213 214
214 // Whether or not this frame is currently pasting. 215 // Whether or not this frame is currently pasting.
215 virtual bool IsPasting() const = 0; 216 virtual bool IsPasting() const = 0;
216 217
218 // Returns the current visibility of the frame.
219 virtual blink::WebPageVisibilityState GetVisibilityState() const = 0;
220
217 protected: 221 protected:
218 ~RenderFrame() override {} 222 ~RenderFrame() override {}
219 223
220 private: 224 private:
221 // This interface should only be implemented inside content. 225 // This interface should only be implemented inside content.
222 friend class RenderFrameImpl; 226 friend class RenderFrameImpl;
223 RenderFrame() {} 227 RenderFrame() {}
224 }; 228 };
225 229
226 } // namespace content 230 } // namespace content
227 231
228 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 232 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/common/page_messages.h ('k') | content/public/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698