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

Side by Side Diff: third_party/WebKit/public/web/WebView.h

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 using WebWidget::didLosePointerLock; 119 using WebWidget::didLosePointerLock;
120 using WebWidget::didChangeWindowResizerRect; 120 using WebWidget::didChangeWindowResizerRect;
121 using WebWidget::backgroundColor; 121 using WebWidget::backgroundColor;
122 using WebWidget::pagePopup; 122 using WebWidget::pagePopup;
123 using WebWidget::updateTopControlsState; 123 using WebWidget::updateTopControlsState;
124 124
125 // Initialization ------------------------------------------------------ 125 // Initialization ------------------------------------------------------
126 126
127 // Creates a WebView that is NOT yet initialized. You will need to 127 // Creates a WebView that is NOT yet initialized. You will need to
128 // call setMainFrame to finish the initialization. It is valid 128 // call setMainFrame to finish the initialization. It is valid
129 // to pass a null client pointer. 129 // to pass a null client pointer. The WebPageVisibilityState defines the
130 BLINK_EXPORT static WebView* create(WebViewClient*); 130 // initial visibility of the page.
131 BLINK_EXPORT static WebView* create(WebViewClient*, WebPageVisibilityState);
131 132
132 // After creating a WebView, you should immediately call this method. 133 // After creating a WebView, you should immediately call this method.
133 // You can optionally modify the settings before calling this method. 134 // You can optionally modify the settings before calling this method.
134 // This WebFrame will receive events for the main frame and must not 135 // This WebFrame will receive events for the main frame and must not
135 // be null. 136 // be null.
136 virtual void setMainFrame(WebFrame*) = 0; 137 virtual void setMainFrame(WebFrame*) = 0;
137 138
138 // Initializes the various client interfaces. 139 // Initializes the various client interfaces.
139 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0; 140 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0;
140 virtual void setPrerendererClient(WebPrerendererClient*) = 0; 141 virtual void setPrerendererClient(WebPrerendererClient*) = 0;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // completed. 535 // completed.
535 WebWidget* widget() { return this; } 536 WebWidget* widget() { return this; }
536 537
537 protected: 538 protected:
538 ~WebView() {} 539 ~WebView() {}
539 }; 540 };
540 541
541 } // namespace blink 542 } // namespace blink
542 543
543 #endif 544 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698