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

Side by Side Diff: content/browser/web_contents/web_contents_view_win.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup 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/web_contents/web_contents_view_win.h" 5 #include "content/browser/web_contents/web_contents_view_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "content/browser/renderer_host/render_view_host_factory.h" 9 #include "content/browser/renderer_host/render_view_host_factory.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const std::vector<WebMenuItem>& items, 256 const std::vector<WebMenuItem>& items,
257 bool right_aligned, 257 bool right_aligned,
258 bool allow_multiple_selection) { 258 bool allow_multiple_selection) {
259 // External popup menus are only used on Mac and Android. 259 // External popup menus are only used on Mac and Android.
260 NOTIMPLEMENTED(); 260 NOTIMPLEMENTED();
261 } 261 }
262 262
263 void WebContentsViewWin::StartDragging(const WebDropData& drop_data, 263 void WebContentsViewWin::StartDragging(const WebDropData& drop_data,
264 WebKit::WebDragOperationsMask operations, 264 WebKit::WebDragOperationsMask operations,
265 const gfx::ImageSkia& image, 265 const gfx::ImageSkia& image,
266 const gfx::Point& image_offset) { 266 const gfx::Vector2d& image_offset) {
267 drag_handler_ = new WebContentsDragWin( 267 drag_handler_ = new WebContentsDragWin(
268 GetNativeView(), 268 GetNativeView(),
269 web_contents_, 269 web_contents_,
270 drag_dest_, 270 drag_dest_,
271 base::Bind(&WebContentsViewWin::EndDragging, base::Unretained(this))); 271 base::Bind(&WebContentsViewWin::EndDragging, base::Unretained(this)));
272 drag_handler_->StartDragging(drop_data, operations, image, image_offset); 272 drag_handler_->StartDragging(drop_data, operations, image, image_offset);
273 } 273 }
274 274
275 void WebContentsViewWin::UpdateDragCursor(WebKit::WebDragOperation operation) { 275 void WebContentsViewWin::UpdateDragCursor(WebKit::WebDragOperation operation) {
276 drag_dest_->set_drag_cursor(operation); 276 drag_dest_->set_drag_cursor(operation);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 si.nPage = 10; 471 si.nPage = 10;
472 si.nPos = 50; 472 si.nPos = 50;
473 473
474 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); 474 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE);
475 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); 475 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE);
476 476
477 return 1; 477 return 1;
478 } 478 }
479 479
480 } // namespace content 480 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698