Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Side by Side Diff: content/browser/web_contents/web_contents_view_win.h

Issue 10031044: TabContents -> WebContentsImpl, part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (fixed) Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "base/win/win_util.h" 12 #include "base/win/win_util.h"
13 #include "content/browser/tab_contents/tab_contents_view_helper.h" 13 #include "content/browser/web_contents/web_contents_view_helper.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/web_contents_view.h" 15 #include "content/public/browser/web_contents_view.h"
16 #include "ui/base/win/window_impl.h" 16 #include "ui/base/win/window_impl.h"
17 17
18 class RenderWidgetHostViewWin; 18 class RenderWidgetHostViewWin;
19 class WebDragDest; 19 class WebDragDest;
20 class WebContentsDragWin; 20 class WebContentsDragWin;
21 21
22 namespace content { 22 namespace content {
23 class WebContentsViewDelegate; 23 class WebContentsViewDelegate;
24 } 24 }
25 25
26 // An implementation of WebContentsView for Windows. 26 // An implementation of WebContentsView for Windows.
27 class CONTENT_EXPORT TabContentsViewWin : public content::WebContentsView, 27 class CONTENT_EXPORT WebContentsViewWin : public content::WebContentsView,
28 public ui::WindowImpl { 28 public ui::WindowImpl {
29 public: 29 public:
30 TabContentsViewWin(WebContentsImpl* web_contents, 30 WebContentsViewWin(WebContentsImpl* web_contents,
31 content::WebContentsViewDelegate* delegate); 31 content::WebContentsViewDelegate* delegate);
32 virtual ~TabContentsViewWin(); 32 virtual ~WebContentsViewWin();
33 33
34 BEGIN_MSG_MAP_EX(TabContentsViewWin) 34 BEGIN_MSG_MAP_EX(WebContentsViewWin)
35 MESSAGE_HANDLER(WM_DESTROY, OnDestroy) 35 MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
36 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged) 36 MESSAGE_HANDLER(WM_WINDOWPOSCHANGED, OnWindowPosChanged)
37 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown) 37 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseDown)
38 MESSAGE_HANDLER(WM_MBUTTONDOWN, OnMouseDown) 38 MESSAGE_HANDLER(WM_MBUTTONDOWN, OnMouseDown)
39 MESSAGE_HANDLER(WM_RBUTTONDOWN, OnMouseDown) 39 MESSAGE_HANDLER(WM_RBUTTONDOWN, OnMouseDown)
40 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove) 40 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
41 MESSAGE_HANDLER(base::win::kReflectedMessage, OnReflectedMessage) 41 MESSAGE_HANDLER(base::win::kReflectedMessage, OnReflectedMessage)
42 // Hacks for old ThinkPad touchpads/scroll points. 42 // Hacks for old ThinkPad touchpads/scroll points.
43 MESSAGE_HANDLER(WM_NCCALCSIZE, OnNCCalcSize) 43 MESSAGE_HANDLER(WM_NCCALCSIZE, OnNCCalcSize)
44 MESSAGE_HANDLER(WM_HSCROLL, OnScroll) 44 MESSAGE_HANDLER(WM_HSCROLL, OnScroll)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 scoped_refptr<WebDragDest> drag_dest_; 136 scoped_refptr<WebDragDest> drag_dest_;
137 137
138 // Used to handle the drag-and-drop. 138 // Used to handle the drag-and-drop.
139 scoped_refptr<WebContentsDragWin> drag_handler_; 139 scoped_refptr<WebContentsDragWin> drag_handler_;
140 140
141 // Set to true if we want to close the tab after the system drag operation 141 // Set to true if we want to close the tab after the system drag operation
142 // has finished. 142 // has finished.
143 bool close_tab_after_drag_ends_; 143 bool close_tab_after_drag_ends_;
144 144
145 // Used to close the tab after the stack has unwound. 145 // Used to close the tab after the stack has unwound.
146 base::OneShotTimer<TabContentsViewWin> close_tab_timer_; 146 base::OneShotTimer<WebContentsViewWin> close_tab_timer_;
147 147
148 // Common implementations of some WebContentsView methods. 148 // Common implementations of some WebContentsView methods.
149 TabContentsViewHelper tab_contents_view_helper_; 149 WebContentsViewHelper web_contents_view_helper_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); 151 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin);
152 }; 152 };
153 153
154 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698