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

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

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_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"
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/port/browser/render_view_host_delegate_view.h" 13 #include "content/port/browser/render_view_host_delegate_view.h"
14 #include "content/public/browser/web_contents_view.h" 14 #include "content/public/browser/web_contents_view.h"
15 #include "ui/base/win/window_impl.h" 15 #include "ui/base/win/window_impl.h"
16 16
17 class RenderWidgetHostViewWin;
18 class WebDragDest; 17 class WebDragDest;
19 class WebContentsDragWin; 18 class WebContentsDragWin;
20 class WebContentsImpl; 19 class WebContentsImpl;
21 20
22 namespace content { 21 namespace content {
22 class RenderWidgetHostViewWin;
23 class WebContentsViewDelegate; 23 class WebContentsViewDelegate;
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,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 LRESULT OnScroll( 121 LRESULT OnScroll(
122 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 122 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
123 LRESULT OnSize( 123 LRESULT OnSize(
124 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 124 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
125 125
126 gfx::Size initial_size_; 126 gfx::Size initial_size_;
127 127
128 // The WebContentsImpl whose contents we display. 128 // The WebContentsImpl whose contents we display.
129 WebContentsImpl* web_contents_; 129 WebContentsImpl* web_contents_;
130 130
131 RenderWidgetHostViewWin* view_; 131 content::RenderWidgetHostViewWin* view_;
132 132
133 scoped_ptr<content::WebContentsViewDelegate> delegate_; 133 scoped_ptr<content::WebContentsViewDelegate> delegate_;
134 134
135 // The helper object that handles drag destination related interactions with 135 // The helper object that handles drag destination related interactions with
136 // Windows. 136 // Windows.
137 scoped_refptr<WebDragDest> drag_dest_; 137 scoped_refptr<WebDragDest> drag_dest_;
138 138
139 // Used to handle the drag-and-drop. 139 // Used to handle the drag-and-drop.
140 scoped_refptr<WebContentsDragWin> drag_handler_; 140 scoped_refptr<WebContentsDragWin> drag_handler_;
141 141
142 // Set to true if we want to close the tab after the system drag operation 142 // Set to true if we want to close the tab after the system drag operation
143 // has finished. 143 // has finished.
144 bool close_tab_after_drag_ends_; 144 bool close_tab_after_drag_ends_;
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/browser/web_contents/web_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698