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

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

Issue 860393004: Expose whether a frame is focused to the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compilation fix on Android/Mac 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
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"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // the result object on the page, navigating assistive technology to that 92 // the result object on the page, navigating assistive technology to that
93 // result. 93 // result.
94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; 94 virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0;
95 95
96 // Temporary until we get rid of RenderViewHost. 96 // Temporary until we get rid of RenderViewHost.
97 virtual RenderViewHost* GetRenderViewHost() = 0; 97 virtual RenderViewHost* GetRenderViewHost() = 0;
98 98
99 // Returns the ServiceRegistry for this frame. 99 // Returns the ServiceRegistry for this frame.
100 virtual ServiceRegistry* GetServiceRegistry() = 0; 100 virtual ServiceRegistry* GetServiceRegistry() = 0;
101 101
102 // Returns whether the frame is focused. A frame is considered focused when it
103 // is the focused frame with in its frame tree and its associated
Charlie Reis 2015/01/22 17:46:04 nit: within
mlamouri (slow - plz ping) 2015/01/22 18:09:40 Done.
104 // RenderWidgetHost is also focused.
105 virtual bool IsFocused() = 0;
Charlie Reis 2015/01/22 17:46:04 Sanity check: Do you have a CL ready to go that us
mlamouri (slow - plz ping) 2015/01/22 18:09:40 Moved to RFHI and updated the tests.
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

Powered by Google App Engine
This is Rietveld 408576698