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

Side by Side Diff: chrome/browser/prerender/prerender_contents.cc

Issue 6462017: gtk: Improve fullscreen RenderWidgetHostViewGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a comment Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/prerender/prerender_contents.h" 5 #include "chrome/browser/prerender/prerender_contents.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/background_contents_service.h" 9 #include "chrome/browser/background_contents_service.h"
10 #include "chrome/browser/browsing_instance.h" 10 #include "chrome/browser/browsing_instance.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Since we don't want to permit child windows that would have a 267 // Since we don't want to permit child windows that would have a
268 // window.opener property, terminate prerendering. 268 // window.opener property, terminate prerendering.
269 Destroy(FINAL_STATUS_CREATE_NEW_WINDOW); 269 Destroy(FINAL_STATUS_CREATE_NEW_WINDOW);
270 } 270 }
271 271
272 void PrerenderContents::CreateNewWidget(int route_id, 272 void PrerenderContents::CreateNewWidget(int route_id,
273 WebKit::WebPopupType popup_type) { 273 WebKit::WebPopupType popup_type) {
274 NOTREACHED(); 274 NOTREACHED();
275 } 275 }
276 276
277 void PrerenderContents::CreateNewFullscreenWidget( 277 void PrerenderContents::CreateNewFullscreenWidget(int route_id) {
278 int route_id, WebKit::WebPopupType popup_type) {
279 NOTREACHED(); 278 NOTREACHED();
280 } 279 }
281 280
282 void PrerenderContents::ShowCreatedWindow(int route_id, 281 void PrerenderContents::ShowCreatedWindow(int route_id,
283 WindowOpenDisposition disposition, 282 WindowOpenDisposition disposition,
284 const gfx::Rect& initial_pos, 283 const gfx::Rect& initial_pos,
285 bool user_gesture) { 284 bool user_gesture) {
286 // TODO(tburkard): need to figure out what the correct behavior here is 285 // TODO(tburkard): need to figure out what the correct behavior here is
287 NOTIMPLEMENTED(); 286 NOTIMPLEMENTED();
288 } 287 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 339
341 void PrerenderContents::DidStopLoading() { 340 void PrerenderContents::DidStopLoading() {
342 has_stopped_loading_ = true; 341 has_stopped_loading_ = true;
343 } 342 }
344 343
345 void PrerenderContents::Destroy(FinalStatus final_status) { 344 void PrerenderContents::Destroy(FinalStatus final_status) {
346 prerender_manager_->RemoveEntry(this); 345 prerender_manager_->RemoveEntry(this);
347 set_final_status(final_status); 346 set_final_status(final_status);
348 delete this; 347 delete this;
349 } 348 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698