| 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/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" |
| 11 #include "content/browser/renderer_host/render_widget_host_view_win.h" | 11 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
| 12 #include "content/browser/web_contents/interstitial_page_impl.h" | 12 #include "content/browser/web_contents/interstitial_page_impl.h" |
| 13 #include "content/browser/web_contents/web_contents_drag_win.h" | 13 #include "content/browser/web_contents/web_contents_drag_win.h" |
| 14 #include "content/browser/web_contents/web_contents_impl.h" | 14 #include "content/browser/web_contents/web_contents_impl.h" |
| 15 #include "content/browser/web_contents/web_drag_dest_win.h" | 15 #include "content/browser/web_contents/web_drag_dest_win.h" |
| 16 #include "content/public/browser/web_contents_delegate.h" | 16 #include "content/public/browser/web_contents_delegate.h" |
| 17 #include "content/public/browser/web_contents_view_delegate.h" | 17 #include "content/public/browser/web_contents_view_delegate.h" |
| 18 #include "ui/base/win/hwnd_subclass.h" | 18 #include "ui/base/win/hwnd_subclass.h" |
| 19 #include "ui/gfx/screen.h" | 19 #include "ui/gfx/screen.h" |
| 20 | 20 |
| 21 using content::RenderViewHost; | 21 using content::RenderViewHost; |
| 22 using content::RenderWidgetHostView; | 22 using content::RenderWidgetHostView; |
| 23 using content::RenderWidgetHostViewWin; |
| 23 using content::WebContents; | 24 using content::WebContents; |
| 24 using content::WebContentsViewDelegate; | 25 using content::WebContentsViewDelegate; |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 WebContentsView* CreateWebContentsView( | 28 WebContentsView* CreateWebContentsView( |
| 28 WebContentsImpl* web_contents, | 29 WebContentsImpl* web_contents, |
| 29 WebContentsViewDelegate* delegate, | 30 WebContentsViewDelegate* delegate, |
| 30 RenderViewHostDelegateView** render_view_host_delegate_view) { | 31 RenderViewHostDelegateView** render_view_host_delegate_view) { |
| 31 WebContentsViewWin* rv = new WebContentsViewWin(web_contents, delegate); | 32 WebContentsViewWin* rv = new WebContentsViewWin(web_contents, delegate); |
| 32 *render_view_host_delegate_view = rv; | 33 *render_view_host_delegate_view = rv; |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 si.nMin = 1; | 523 si.nMin = 1; |
| 523 si.nMax = 100; | 524 si.nMax = 100; |
| 524 si.nPage = 10; | 525 si.nPage = 10; |
| 525 si.nPos = 50; | 526 si.nPos = 50; |
| 526 | 527 |
| 527 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); | 528 ::SetScrollInfo(hwnd(), SB_HORZ, &si, FALSE); |
| 528 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); | 529 ::SetScrollInfo(hwnd(), SB_VERT, &si, FALSE); |
| 529 | 530 |
| 530 return 1; | 531 return 1; |
| 531 } | 532 } |
| OLD | NEW |