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

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

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 9 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void NotifyWebContentsFocused(); 196 void NotifyWebContentsFocused();
197 197
198 WebContentsView* GetView() const; 198 WebContentsView* GetView() const;
199 199
200 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { 200 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
201 return screen_orientation_dispatcher_host_.get(); 201 return screen_orientation_dispatcher_host_.get();
202 } 202 }
203 203
204 bool should_normally_be_visible() { return should_normally_be_visible_; } 204 bool should_normally_be_visible() { return should_normally_be_visible_; }
205 205
206 // Invoked when the WebContentsView becomes visible to the user, or is hidden.
207 void WasShown();
208 void WasHidden();
209
206 // Indicate if the window has been occluded, and pass this to the views, only 210 // Indicate if the window has been occluded, and pass this to the views, only
207 // if there is no active capture going on (otherwise it is dropped on the 211 // if there is no active capture going on (otherwise it is dropped on the
208 // floor). 212 // floor).
209 void WasOccluded(); 213 void WasOccluded();
210 void WasUnOccluded(); 214 void WasUnOccluded();
211 215
212 // Broadcasts the mode change to all frames. 216 // Broadcasts the mode change to all frames.
213 void SetAccessibilityMode(AccessibilityMode mode); 217 void SetAccessibilityMode(AccessibilityMode mode);
214 218
215 // Adds the given accessibility mode to the current accessibility mode 219 // Adds the given accessibility mode to the current accessibility mode
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 int GetCapturerCount() const override; 290 int GetCapturerCount() const override;
287 bool IsAudioMuted() const override; 291 bool IsAudioMuted() const override;
288 void SetAudioMuted(bool mute) override; 292 void SetAudioMuted(bool mute) override;
289 bool IsCrashed() const override; 293 bool IsCrashed() const override;
290 void SetIsCrashed(base::TerminationStatus status, int error_code) override; 294 void SetIsCrashed(base::TerminationStatus status, int error_code) override;
291 base::TerminationStatus GetCrashedStatus() const override; 295 base::TerminationStatus GetCrashedStatus() const override;
292 bool IsBeingDestroyed() const override; 296 bool IsBeingDestroyed() const override;
293 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; 297 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override;
294 base::TimeTicks GetLastActiveTime() const override; 298 base::TimeTicks GetLastActiveTime() const override;
295 void SetLastActiveTime(base::TimeTicks last_active_time) override; 299 void SetLastActiveTime(base::TimeTicks last_active_time) override;
296 void WasShown() override; 300 void MarkBackgrounded() override;
297 void WasHidden() override;
298 bool NeedToFireBeforeUnload() override; 301 bool NeedToFireBeforeUnload() override;
299 void DispatchBeforeUnload(bool for_cross_site_transition) override; 302 void DispatchBeforeUnload(bool for_cross_site_transition) override;
300 void AttachToOuterWebContentsFrame( 303 void AttachToOuterWebContentsFrame(
301 WebContents* outer_web_contents, 304 WebContents* outer_web_contents,
302 RenderFrameHost* outer_contents_frame) override; 305 RenderFrameHost* outer_contents_frame) override;
303 void Stop() override; 306 void Stop() override;
304 WebContents* Clone() override; 307 WebContents* Clone() override;
305 void ReloadFocusedFrame(bool ignore_cache) override; 308 void ReloadFocusedFrame(bool ignore_cache) override;
306 void Undo() override; 309 void Undo() override;
307 void Redo() override; 310 void Redo() override;
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 // Adds/removes a callback called on creation of each new WebContents. 1353 // Adds/removes a callback called on creation of each new WebContents.
1351 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1354 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1352 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1355 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1353 1356
1354 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1357 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1355 }; 1358 };
1356 1359
1357 } // namespace content 1360 } // namespace content
1358 1361
1359 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1362 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698