| OLD | NEW |
| 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/frame_host/interstitial_page_impl.h" | 9 #include "content/browser/frame_host/interstitial_page_impl.h" |
| 10 #include "content/browser/renderer_host/render_view_host_factory.h" | 10 #include "content/browser/renderer_host/render_view_host_factory.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 double item_font_size, | 254 double item_font_size, |
| 255 int selected_item, | 255 int selected_item, |
| 256 const std::vector<MenuItem>& items, | 256 const std::vector<MenuItem>& 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 DropData& drop_data, | 263 void WebContentsViewWin::StartDragging(const DropData& drop_data, |
| 264 WebKit::WebDragOperationsMask operations, | 264 blink::WebDragOperationsMask operations, |
| 265 const gfx::ImageSkia& image, | 265 const gfx::ImageSkia& image, |
| 266 const gfx::Vector2d& image_offset, | 266 const gfx::Vector2d& image_offset, |
| 267 const DragEventSourceInfo& event_info) { | 267 const DragEventSourceInfo& event_info) { |
| 268 drag_handler_ = new WebContentsDragWin( | 268 drag_handler_ = new WebContentsDragWin( |
| 269 GetNativeView(), | 269 GetNativeView(), |
| 270 web_contents_, | 270 web_contents_, |
| 271 drag_dest_, | 271 drag_dest_, |
| 272 base::Bind(&WebContentsViewWin::EndDragging, base::Unretained(this))); | 272 base::Bind(&WebContentsViewWin::EndDragging, base::Unretained(this))); |
| 273 drag_handler_->StartDragging(drop_data, operations, image, image_offset); | 273 drag_handler_->StartDragging(drop_data, operations, image, image_offset); |
| 274 } | 274 } |
| 275 | 275 |
| 276 void WebContentsViewWin::UpdateDragCursor(WebKit::WebDragOperation operation) { | 276 void WebContentsViewWin::UpdateDragCursor(blink::WebDragOperation operation) { |
| 277 drag_dest_->set_drag_cursor(operation); | 277 drag_dest_->set_drag_cursor(operation); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void WebContentsViewWin::GotFocus() { | 280 void WebContentsViewWin::GotFocus() { |
| 281 if (web_contents_->GetDelegate()) | 281 if (web_contents_->GetDelegate()) |
| 282 web_contents_->GetDelegate()->WebContentsFocused(web_contents_); | 282 web_contents_->GetDelegate()->WebContentsFocused(web_contents_); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void WebContentsViewWin::TakeFocus(bool reverse) { | 285 void WebContentsViewWin::TakeFocus(bool reverse) { |
| 286 if (web_contents_->GetDelegate() && | 286 if (web_contents_->GetDelegate() && |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 si.nPage = 10; | 456 si.nPage = 10; |
| 457 si.nPos = 50; | 457 si.nPos = 50; |
| 458 | 458 |
| 459 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); | 459 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); |
| 460 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); | 460 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); |
| 461 | 461 |
| 462 return 1; | 462 return 1; |
| 463 } | 463 } |
| 464 | 464 |
| 465 } // namespace content | 465 } // namespace content |
| OLD | NEW |