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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 3055009: Use RenderWidget(Host) for full screen (Closed)
Patch Set: Add IPC::SyncMessage dependency. Fix auto complete. Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <QuartzCore/QuartzCore.h> 5 #include <QuartzCore/QuartzCore.h>
6 6
7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h"
8 8
9 #include "app/surface/io_surface_support_mac.h" 9 #include "app/surface/io_surface_support_mac.h"
10 #import "base/chrome_application_mac.h" 10 #import "base/chrome_application_mac.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 [[cocoa_view_ window] convertScreenToBase:global_origin]; 345 [[cocoa_view_ window] convertScreenToBase:global_origin];
346 NSPoint view_origin = 346 NSPoint view_origin =
347 [cocoa_view_ convertPoint:window_origin fromView:nil]; 347 [cocoa_view_ convertPoint:window_origin fromView:nil];
348 NSRect initial_frame = NSMakeRect(view_origin.x, 348 NSRect initial_frame = NSMakeRect(view_origin.x,
349 view_origin.y, 349 view_origin.y,
350 pos.width(), 350 pos.width(),
351 pos.height()); 351 pos.height());
352 [cocoa_view_ setFrame:initial_frame]; 352 [cocoa_view_ setFrame:initial_frame];
353 } 353 }
354 354
355 void RenderWidgetHostViewMac::InitAsFullscreen(
356 RenderWidgetHostView* parent_host_view) {
357 NOTIMPLEMENTED() << "Full screen not implemented on Mac";
358 }
359
355 RenderWidgetHost* RenderWidgetHostViewMac::GetRenderWidgetHost() const { 360 RenderWidgetHost* RenderWidgetHostViewMac::GetRenderWidgetHost() const {
356 return render_widget_host_; 361 return render_widget_host_;
357 } 362 }
358 363
359 void RenderWidgetHostViewMac::DidBecomeSelected() { 364 void RenderWidgetHostViewMac::DidBecomeSelected() {
360 if (!is_hidden_) 365 if (!is_hidden_)
361 return; 366 return;
362 367
363 if (tab_switch_paint_time_.is_null()) 368 if (tab_switch_paint_time_.is_null())
364 tab_switch_paint_time_ = base::TimeTicks::Now(); 369 tab_switch_paint_time_ = base::TimeTicks::Now();
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 NSArray* toDeclare = [NSArray arrayWithObject:NSStringPboardType]; 2286 NSArray* toDeclare = [NSArray arrayWithObject:NSStringPboardType];
2282 [pboard declareTypes:toDeclare owner:nil]; 2287 [pboard declareTypes:toDeclare owner:nil];
2283 return [pboard setString:text forType:NSStringPboardType]; 2288 return [pboard setString:text forType:NSStringPboardType];
2284 } 2289 }
2285 2290
2286 - (BOOL)readSelectionFromPasteboard:(NSPasteboard*)pboard { 2291 - (BOOL)readSelectionFromPasteboard:(NSPasteboard*)pboard {
2287 return NO; 2292 return NO;
2288 } 2293 }
2289 2294
2290 @end 2295 @end
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.h ('k') | chrome/browser/renderer_host/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698