| 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/tab_contents/tab_contents_view_win.h" | 5 #include "content/browser/tab_contents/tab_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" |
| 11 #include "content/browser/tab_contents/interstitial_page_impl.h" | 11 #include "content/browser/tab_contents/interstitial_page_impl.h" |
| 12 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
| 13 #include "content/browser/tab_contents/web_contents_drag_win.h" | 13 #include "content/browser/tab_contents/web_contents_drag_win.h" |
| 14 #include "content/browser/tab_contents/web_drag_dest_win.h" | 14 #include "content/browser/web_contents/web_drag_dest_win.h" |
| 15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
| 16 #include "content/public/browser/web_contents_view_delegate.h" | 16 #include "content/public/browser/web_contents_view_delegate.h" |
| 17 #include "ui/gfx/screen.h" | 17 #include "ui/gfx/screen.h" |
| 18 | 18 |
| 19 using content::RenderViewHost; | 19 using content::RenderViewHost; |
| 20 using content::RenderWidgetHostView; | 20 using content::RenderWidgetHostView; |
| 21 using content::WebContents; | 21 using content::WebContents; |
| 22 using content::WebContentsViewDelegate; | 22 using content::WebContentsViewDelegate; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 si.nMin = 1; | 476 si.nMin = 1; |
| 477 si.nMax = 100; | 477 si.nMax = 100; |
| 478 si.nPage = 10; | 478 si.nPage = 10; |
| 479 si.nPos = 50; | 479 si.nPos = 50; |
| 480 | 480 |
| 481 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); | 481 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); |
| 482 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); | 482 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); |
| 483 | 483 |
| 484 return 1; | 484 return 1; |
| 485 } | 485 } |
| OLD | NEW |