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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 866443003: Push API: Don't require notification if tab is visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ycm_outdir
Patch Set: Switch statement for GetVisibilityState Created 5 years, 10 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 (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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 RenderFrameHost* render_frame_host, 174 RenderFrameHost* render_frame_host,
175 const ResourceRedirectDetails& details); 175 const ResourceRedirectDetails& details);
176 176
177 WebContentsView* GetView() const; 177 WebContentsView* GetView() const;
178 178
179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { 179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
180 return screen_orientation_dispatcher_host_.get(); 180 return screen_orientation_dispatcher_host_.get();
181 } 181 }
182 182
183 bool should_normally_be_visible() { return should_normally_be_visible_; } 183 bool should_normally_be_visible() { return should_normally_be_visible_; }
184
mlamouri (slow - plz ping) 2015/02/02 12:36:58 nit: that change was probably not intentional, rig
mlamouri (slow - plz ping) 2015/02/02 12:36:58 nit: that change was probably not intentional, rig
johnme 2015/02/02 15:58:36 Done.
johnme 2015/02/02 15:58:36 Done.
185 // Indicate if the window has been occluded, and pass this to the views, only 184 // Indicate if the window has been occluded, and pass this to the views, only
186 // if there is no active capture going on (otherwise it is dropped on the 185 // if there is no active capture going on (otherwise it is dropped on the
187 // floor). 186 // floor).
188 void WasOccluded(); 187 void WasOccluded();
189 void WasUnOccluded(); 188 void WasUnOccluded();
190 189
191 // Broadcasts the mode change to all frames. 190 // Broadcasts the mode change to all frames.
192 void SetAccessibilityMode(AccessibilityMode mode); 191 void SetAccessibilityMode(AccessibilityMode mode);
193 192
194 // Adds the given accessibility mode to the current accessibility mode 193 // Adds the given accessibility mode to the current accessibility mode
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 // Adds/removes a callback called on creation of each new WebContents. 1268 // Adds/removes a callback called on creation of each new WebContents.
1270 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1269 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1271 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1270 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1272 1271
1273 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1272 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1274 }; 1273 };
1275 1274
1276 } // namespace content 1275 } // namespace content
1277 1276
1278 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1277 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698