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 "content/browser/renderer_host/render_view_host_factory.h" | 8 #include "content/browser/renderer_host/render_view_host_factory.h" |
9 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
10 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 10 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void WebContentsViewWin::CancelDragAndCloseTab() { | 205 void WebContentsViewWin::CancelDragAndCloseTab() { |
206 DCHECK(IsDoingDrag()); | 206 DCHECK(IsDoingDrag()); |
207 // We can't close the tab while we're in the drag and | 207 // We can't close the tab while we're in the drag and |
208 // |drag_handler_->CancelDrag()| is async. Instead, set a flag to cancel | 208 // |drag_handler_->CancelDrag()| is async. Instead, set a flag to cancel |
209 // the drag and when the drag nested message loop ends, close the tab. | 209 // the drag and when the drag nested message loop ends, close the tab. |
210 drag_handler_->CancelDrag(); | 210 drag_handler_->CancelDrag(); |
211 close_tab_after_drag_ends_ = true; | 211 close_tab_after_drag_ends_ = true; |
212 } | 212 } |
213 | 213 |
214 WebDropData* WebContentsViewWin::GetDropData() const { | 214 WebDropData* WebContentsViewWin::GetDropData() const { |
215 return NULL; | 215 return drag_dest_->current_drop_data(); |
216 } | 216 } |
217 | 217 |
218 bool WebContentsViewWin::IsEventTracking() const { | 218 bool WebContentsViewWin::IsEventTracking() const { |
219 return false; | 219 return false; |
220 } | 220 } |
221 | 221 |
222 void WebContentsViewWin::CloseTabAfterEventTracking() { | 222 void WebContentsViewWin::CloseTabAfterEventTracking() { |
223 } | 223 } |
224 | 224 |
225 void WebContentsViewWin::GetViewBounds(gfx::Rect* out) const { | 225 void WebContentsViewWin::GetViewBounds(gfx::Rect* out) const { |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 si.nMin = 1; | 480 si.nMin = 1; |
481 si.nMax = 100; | 481 si.nMax = 100; |
482 si.nPage = 10; | 482 si.nPage = 10; |
483 si.nPos = 50; | 483 si.nPos = 50; |
484 | 484 |
485 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); | 485 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); |
486 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); | 486 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); |
487 | 487 |
488 return 1; | 488 return 1; |
489 } | 489 } |
OLD | NEW |