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.h" | 10 #include "base/timer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 namespace ui { | 26 namespace ui { |
27 class HWNDMessageFilter; | 27 class HWNDMessageFilter; |
28 } | 28 } |
29 | 29 |
30 // An implementation of WebContentsView for Windows. | 30 // An implementation of WebContentsView for Windows. |
31 class CONTENT_EXPORT WebContentsViewWin | 31 class CONTENT_EXPORT WebContentsViewWin |
32 : public content::WebContentsView, | 32 : public content::WebContentsView, |
33 public content::RenderViewHostDelegateView, | 33 public content::RenderViewHostDelegateView, |
34 public ui::WindowImpl { | 34 public ui::WindowImpl { |
35 public: | 35 public: |
36 WebContentsViewWin(WebContentsImpl* web_contents, | 36 WebContentsViewWin(WebContentsImpl* web_contents, |
37 content::WebContentsViewDelegate* delegate); | 37 content::WebContentsViewDelegate* delegate); |
38 virtual ~WebContentsViewWin(); | 38 virtual ~WebContentsViewWin(); |
39 | 39 |
40 BEGIN_MSG_MAP_EX(WebContentsViewWin) | 40 BEGIN_MSG_MAP_EX(WebContentsViewWin) |
41 MESSAGE_HANDLER(WM_CREATE, OnCreate) | 41 MESSAGE_HANDLER(WM_CREATE, OnCreate) |
42 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) | 42 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) |
43 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged) | 43 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged) |
44 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown) | 44 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 // Used to close the tab after the stack has unwound. | 146 // Used to close the tab after the stack has unwound. |
147 base::OneShotTimer<WebContentsViewWin> close_tab_timer_; | 147 base::OneShotTimer<WebContentsViewWin> close_tab_timer_; |
148 | 148 |
149 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; | 149 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 151 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
152 }; | 152 }; |
153 | 153 |
154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |