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

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

Issue 55293003: Defer app window appearance until first paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge issue Created 7 years, 1 month 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/browser/web_contents/web_contents_impl.cc ('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 (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_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 virtual void DidOpenRequestedURL(WebContents* new_contents, 211 virtual void DidOpenRequestedURL(WebContents* new_contents,
212 const GURL& url, 212 const GURL& url,
213 const Referrer& referrer, 213 const Referrer& referrer,
214 WindowOpenDisposition disposition, 214 WindowOpenDisposition disposition,
215 PageTransition transition, 215 PageTransition transition,
216 int64 source_frame_id) {} 216 int64 source_frame_id) {}
217 217
218 virtual void FrameDetached(RenderViewHost* render_view_host, 218 virtual void FrameDetached(RenderViewHost* render_view_host,
219 int64 frame_id) {} 219 int64 frame_id) {}
220 220
221 // This method is invoked when the renderer has completed its first paint
222 // after a non-empty layout.
223 virtual void DidFirstVisuallyNonEmptyPaint(int32 page_id) {}
224
221 // These two methods correspond to the points in time when the spinner of the 225 // These two methods correspond to the points in time when the spinner of the
222 // tab starts and stops spinning. 226 // tab starts and stops spinning.
223 virtual void DidStartLoading(RenderViewHost* render_view_host) {} 227 virtual void DidStartLoading(RenderViewHost* render_view_host) {}
224 virtual void DidStopLoading(RenderViewHost* render_view_host) {} 228 virtual void DidStopLoading(RenderViewHost* render_view_host) {}
225 229
226 // When WebContents::Stop() is called, the WebContents stops loading and then 230 // When WebContents::Stop() is called, the WebContents stops loading and then
227 // invokes this method. If there are ongoing navigations, their respective 231 // invokes this method. If there are ongoing navigations, their respective
228 // failure methods will also be invoked. 232 // failure methods will also be invoked.
229 virtual void NavigationStopped() {} 233 virtual void NavigationStopped() {}
230 234
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void WebContentsImplDestroyed(); 338 void WebContentsImplDestroyed();
335 339
336 WebContentsImpl* web_contents_; 340 WebContentsImpl* web_contents_;
337 341
338 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 342 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
339 }; 343 };
340 344
341 } // namespace content 345 } // namespace content
342 346
343 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 347 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698