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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
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 { |
| 215 return NULL; |
| 216 } |
| 217 |
214 bool WebContentsViewWin::IsEventTracking() const { | 218 bool WebContentsViewWin::IsEventTracking() const { |
215 return false; | 219 return false; |
216 } | 220 } |
217 | 221 |
218 void WebContentsViewWin::CloseTabAfterEventTracking() { | 222 void WebContentsViewWin::CloseTabAfterEventTracking() { |
219 } | 223 } |
220 | 224 |
221 void WebContentsViewWin::GetViewBounds(gfx::Rect* out) const { | 225 void WebContentsViewWin::GetViewBounds(gfx::Rect* out) const { |
222 RECT r; | 226 RECT r; |
223 GetWindowRect(hwnd(), &r); | 227 GetWindowRect(hwnd(), &r); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 si.nMin = 1; | 480 si.nMin = 1; |
477 si.nMax = 100; | 481 si.nMax = 100; |
478 si.nPage = 10; | 482 si.nPage = 10; |
479 si.nPos = 50; | 483 si.nPos = 50; |
480 | 484 |
481 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); | 485 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); |
482 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); | 486 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); |
483 | 487 |
484 return 1; | 488 return 1; |
485 } | 489 } |
OLD | NEW |