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

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

Issue 10038026: TabContents -> WebContentsImpl, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: *web*contents 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_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 #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"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const std::vector<WebMenuItem>& items, 92 const std::vector<WebMenuItem>& items,
93 bool right_aligned) OVERRIDE; 93 bool right_aligned) OVERRIDE;
94 virtual void StartDragging(const WebDropData& drop_data, 94 virtual void StartDragging(const WebDropData& drop_data,
95 WebKit::WebDragOperationsMask operations, 95 WebKit::WebDragOperationsMask operations,
96 const SkBitmap& image, 96 const SkBitmap& image,
97 const gfx::Point& image_offset) OVERRIDE; 97 const gfx::Point& image_offset) OVERRIDE;
98 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 98 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
99 virtual void GotFocus() OVERRIDE; 99 virtual void GotFocus() OVERRIDE;
100 virtual void TakeFocus(bool reverse) OVERRIDE; 100 virtual void TakeFocus(bool reverse) OVERRIDE;
101 101
102 WebContentsImpl* tab_contents() const { return tab_contents_; } 102 WebContentsImpl* web_contents() const { return web_contents_; }
103 103
104 private: 104 private:
105 void EndDragging(); 105 void EndDragging();
106 void CloseTab(); 106 void CloseTab();
107 107
108 LRESULT OnDestroy( 108 LRESULT OnDestroy(
109 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 109 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
110 LRESULT OnWindowPosChanged( 110 LRESULT OnWindowPosChanged(
111 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 111 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
112 LRESULT OnMouseDown( 112 LRESULT OnMouseDown(
113 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 113 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
114 LRESULT OnMouseMove( 114 LRESULT OnMouseMove(
115 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 115 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
116 LRESULT OnReflectedMessage( 116 LRESULT OnReflectedMessage(
117 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 117 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
118 LRESULT OnNCCalcSize( 118 LRESULT OnNCCalcSize(
119 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 119 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
120 LRESULT OnScroll( 120 LRESULT OnScroll(
121 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 121 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
122 LRESULT OnSize( 122 LRESULT OnSize(
123 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 123 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
124 124
125 gfx::Size initial_size_; 125 gfx::Size initial_size_;
126 126
127 // The WebContentsImpl whose contents we display. 127 // The WebContentsImpl whose contents we display.
128 WebContentsImpl* tab_contents_; 128 WebContentsImpl* web_contents_;
129 129
130 RenderWidgetHostViewWin* view_; 130 RenderWidgetHostViewWin* view_;
131 131
132 scoped_ptr<content::WebContentsViewDelegate> delegate_; 132 scoped_ptr<content::WebContentsViewDelegate> delegate_;
133 133
134 // The helper object that handles drag destination related interactions with 134 // The helper object that handles drag destination related interactions with
135 // Windows. 135 // Windows.
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<WebContentsViewWin> 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 WebContentsViewHelper web_contents_view_helper_; 149 WebContentsViewHelper web_contents_view_helper_;
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