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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 871443004: Expose the visibility state of a frame to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_isfocused
Patch Set: rebase Created 5 years, 11 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/content_browser_client.h ('k') | no next file » | 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_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ipc/ipc_listener.h" 12 #include "ipc/ipc_listener.h"
13 #include "ipc/ipc_sender.h" 13 #include "ipc/ipc_sender.h"
14 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
14 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 namespace base { 19 namespace base {
19 class Value; 20 class Value;
20 } 21 }
21 22
22 namespace content { 23 namespace content {
23 class RenderProcessHost; 24 class RenderProcessHost;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // the result object on the page, navigating assistive technology to that 93 // the result object on the page, navigating assistive technology to that
93 // result. 94 // result.
94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; 95 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0;
95 96
96 // Temporary until we get rid of RenderViewHost. 97 // Temporary until we get rid of RenderViewHost.
97 virtual RenderViewHost* GetRenderViewHost() = 0; 98 virtual RenderViewHost* GetRenderViewHost() = 0;
98 99
99 // Returns the ServiceRegistry for this frame. 100 // Returns the ServiceRegistry for this frame.
100 virtual ServiceRegistry* GetServiceRegistry() = 0; 101 virtual ServiceRegistry* GetServiceRegistry() = 0;
101 102
103 // Returns the visibility state of the frame. The different visibility states
104 // of a frame are defined in Blink.
105 virtual blink::WebPageVisibilityState GetVisibilityState() = 0;
106
102 private: 107 private:
103 // This interface should only be implemented inside content. 108 // This interface should only be implemented inside content.
104 friend class RenderFrameHostImpl; 109 friend class RenderFrameHostImpl;
105 RenderFrameHost() {} 110 RenderFrameHost() {}
106 }; 111 };
107 112
108 } // namespace content 113 } // namespace content
109 114
110 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 115 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698