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/browser/renderer_host/render_widget_host_view_mac.mm

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasefinal Created 8 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 | Annotate | Revision Log
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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #include <QuartzCore/QuartzCore.h> 7 #include <QuartzCore/QuartzCore.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 gfx::NativeViewId RenderWidgetHostViewMac::GetNativeViewId() const { 477 gfx::NativeViewId RenderWidgetHostViewMac::GetNativeViewId() const {
478 return reinterpret_cast<gfx::NativeViewId>(GetNativeView()); 478 return reinterpret_cast<gfx::NativeViewId>(GetNativeView());
479 } 479 }
480 480
481 gfx::NativeViewAccessible RenderWidgetHostViewMac::GetNativeViewAccessible() { 481 gfx::NativeViewAccessible RenderWidgetHostViewMac::GetNativeViewAccessible() {
482 NOTIMPLEMENTED(); 482 NOTIMPLEMENTED();
483 return static_cast<gfx::NativeViewAccessible>(NULL); 483 return static_cast<gfx::NativeViewAccessible>(NULL);
484 } 484 }
485 485
486 void RenderWidgetHostViewMac::MovePluginWindows( 486 void RenderWidgetHostViewMac::MovePluginWindows(
487 const gfx::Point& scroll_offset, 487 const gfx::Vector2d& scroll_offset,
488 const std::vector<webkit::npapi::WebPluginGeometry>& moves) { 488 const std::vector<webkit::npapi::WebPluginGeometry>& moves) {
489 TRACE_EVENT0("browser", "RenderWidgetHostViewMac::MovePluginWindows"); 489 TRACE_EVENT0("browser", "RenderWidgetHostViewMac::MovePluginWindows");
490 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 490 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
491 // Handle movement of accelerated plugins, which are the only "windowed" 491 // Handle movement of accelerated plugins, which are the only "windowed"
492 // plugins that exist on the Mac. 492 // plugins that exist on the Mac.
493 for (std::vector<webkit::npapi::WebPluginGeometry>::const_iterator iter = 493 for (std::vector<webkit::npapi::WebPluginGeometry>::const_iterator iter =
494 moves.begin(); 494 moves.begin();
495 iter != moves.end(); 495 iter != moves.end();
496 ++iter) { 496 ++iter) {
497 webkit::npapi::WebPluginGeometry geom = *iter; 497 webkit::npapi::WebPluginGeometry geom = *iter;
(...skipping 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 if (!string) return NO; 3302 if (!string) return NO;
3303 3303
3304 // If the user is currently using an IME, confirm the IME input, 3304 // If the user is currently using an IME, confirm the IME input,
3305 // and then insert the text from the service, the same as TextEdit and Safari. 3305 // and then insert the text from the service, the same as TextEdit and Safari.
3306 [self confirmComposition]; 3306 [self confirmComposition];
3307 [self insertText:string]; 3307 [self insertText:string];
3308 return YES; 3308 return YES;
3309 } 3309 }
3310 3310
3311 @end 3311 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698