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

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

Issue 2875793002: Why this CL triggers an OilPan crash.
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('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 /* 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 using WebWidget::WillCloseLayerTreeView; 111 using WebWidget::WillCloseLayerTreeView;
112 using WebWidget::DidAcquirePointerLock; 112 using WebWidget::DidAcquirePointerLock;
113 using WebWidget::DidNotAcquirePointerLock; 113 using WebWidget::DidNotAcquirePointerLock;
114 using WebWidget::DidLosePointerLock; 114 using WebWidget::DidLosePointerLock;
115 using WebWidget::BackgroundColor; 115 using WebWidget::BackgroundColor;
116 using WebWidget::GetPagePopup; 116 using WebWidget::GetPagePopup;
117 using WebWidget::UpdateBrowserControlsState; 117 using WebWidget::UpdateBrowserControlsState;
118 118
119 // Initialization ------------------------------------------------------ 119 // Initialization ------------------------------------------------------
120 120
121 // Special value that can be passed as |browsing_instance_id| argument to
122 // WebView::Create method. This value designates a view that should not be
123 // related to any other view (example of such a view would be a print-preview
124 // page that adds print header and footer on top of actual web contents).
125 static const int kUnknownBrowsingInstance = -1;
126
121 // 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
122 // call setMainFrame to finish the initialization. It is valid 128 // call setMainFrame to finish the initialization. It is valid
123 // to pass a null client pointer. The WebPageVisibilityState defines the 129 // to pass a null client pointer. The WebPageVisibilityState defines the
124 // initial visibility of the page. 130 // initial visibility of the page.
125 BLINK_EXPORT static WebView* Create(WebViewClient*, WebPageVisibilityState); 131 BLINK_EXPORT static WebView* Create(
132 WebViewClient*,
133 WebPageVisibilityState,
134 int browsing_instance_id = kUnknownBrowsingInstance);
126 135
127 // After creating a WebView, you should immediately call this method. 136 // After creating a WebView, you should immediately call this method.
128 // You can optionally modify the settings before calling this method. 137 // You can optionally modify the settings before calling this method.
129 // This WebFrame will receive events for the main frame and must not 138 // This WebFrame will receive events for the main frame and must not
130 // be null. 139 // be null.
131 // TODO(mustaq): The non-null param should be a reference. 140 // TODO(mustaq): The non-null param should be a reference.
132 virtual void SetMainFrame(WebFrame*) = 0; 141 virtual void SetMainFrame(WebFrame*) = 0;
133 142
134 // Initializes the various client interfaces. 143 // Initializes the various client interfaces.
135 virtual void SetCredentialManagerClient(WebCredentialManagerClient*) = 0; 144 virtual void SetCredentialManagerClient(WebCredentialManagerClient*) = 0;
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // completed. 505 // completed.
497 WebWidget* GetWidget() { return this; } 506 WebWidget* GetWidget() { return this; }
498 507
499 protected: 508 protected:
500 ~WebView() {} 509 ~WebView() {}
501 }; 510 };
502 511
503 } // namespace blink 512 } // namespace blink
504 513
505 #endif 514 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698