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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
11 #include "base/win/win_util.h" | 11 #include "base/win/win_util.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/common/drag_event_source_info.h" | 13 #include "content/common/drag_event_source_info.h" |
14 #include "content/port/browser/render_view_host_delegate_view.h" | 14 #include "content/port/browser/render_view_host_delegate_view.h" |
15 #include "content/port/browser/web_contents_view_port.h" | 15 #include "content/port/browser/web_contents_view_port.h" |
16 #include "ui/base/win/window_impl.h" | 16 #include "ui/gfx/win/window_impl.h" |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 class HWNDMessageFilter; | 19 class HWNDMessageFilter; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class WebContentsDragWin; | 23 class WebContentsDragWin; |
24 class WebContentsImpl; | 24 class WebContentsImpl; |
25 class WebContentsViewDelegate; | 25 class WebContentsViewDelegate; |
26 class WebDragDest; | 26 class WebDragDest; |
27 | 27 |
28 // An implementation of WebContentsView for Windows. | 28 // An implementation of WebContentsView for Windows. |
29 class CONTENT_EXPORT WebContentsViewWin | 29 class CONTENT_EXPORT WebContentsViewWin |
30 : public WebContentsViewPort, | 30 : public WebContentsViewPort, |
31 public RenderViewHostDelegateView, | 31 public RenderViewHostDelegateView, |
32 public ui::WindowImpl { | 32 public gfx::WindowImpl { |
33 public: | 33 public: |
34 WebContentsViewWin(WebContentsImpl* web_contents, | 34 WebContentsViewWin(WebContentsImpl* web_contents, |
35 WebContentsViewDelegate* delegate); | 35 WebContentsViewDelegate* delegate); |
36 virtual ~WebContentsViewWin(); | 36 virtual ~WebContentsViewWin(); |
37 | 37 |
38 BEGIN_MSG_MAP_EX(WebContentsViewWin) | 38 BEGIN_MSG_MAP_EX(WebContentsViewWin) |
39 MESSAGE_HANDLER(WM_CREATE, OnCreate) | 39 MESSAGE_HANDLER(WM_CREATE, OnCreate) |
40 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) | 40 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) |
41 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged) | 41 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged) |
42 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown) | 42 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown) |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_refptr<WebContentsDragWin> drag_handler_; | 138 scoped_refptr<WebContentsDragWin> drag_handler_; |
139 | 139 |
140 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; | 140 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 142 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace content | 145 } // namespace content |
146 | 146 |
147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 147 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |