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

Side by Side Diff: chrome/browser/render_widget_host_hwnd.h

Issue 2878: Touchpad support for laptops... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/render_widget_host_hwnd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 5 #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 6 #define CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 MESSAGE_HANDLER(WM_SYSKEYDOWN, OnKeyEvent) 99 MESSAGE_HANDLER(WM_SYSKEYDOWN, OnKeyEvent)
100 MESSAGE_HANDLER(WM_SYSKEYUP, OnKeyEvent) 100 MESSAGE_HANDLER(WM_SYSKEYUP, OnKeyEvent)
101 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyEvent) 101 MESSAGE_HANDLER(WM_KEYDOWN, OnKeyEvent)
102 MESSAGE_HANDLER(WM_KEYUP, OnKeyEvent) 102 MESSAGE_HANDLER(WM_KEYUP, OnKeyEvent)
103 MESSAGE_HANDLER(WM_MOUSEWHEEL, OnWheelEvent) 103 MESSAGE_HANDLER(WM_MOUSEWHEEL, OnWheelEvent)
104 MESSAGE_HANDLER(WM_HSCROLL, OnWheelEvent) 104 MESSAGE_HANDLER(WM_HSCROLL, OnWheelEvent)
105 MESSAGE_HANDLER(WM_VSCROLL, OnWheelEvent) 105 MESSAGE_HANDLER(WM_VSCROLL, OnWheelEvent)
106 MESSAGE_HANDLER(WM_CHAR, OnKeyEvent) 106 MESSAGE_HANDLER(WM_CHAR, OnKeyEvent)
107 MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent) 107 MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent)
108 MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent) 108 MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent)
109 MESSAGE_HANDLER(WM_NCCALCSIZE, OnNcCalcSize)
110 MESSAGE_HANDLER(WM_SIZE, OnSize)
111 MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate) 109 MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
112 END_MSG_MAP() 110 END_MSG_MAP()
113 111
114 // Overridden from RenderWidgetHostView: 112 // Overridden from RenderWidgetHostView:
115 virtual void DidBecomeSelected(); 113 virtual void DidBecomeSelected();
116 virtual void WasHidden(); 114 virtual void WasHidden();
117 virtual void SetSize(const gfx::Size& size); 115 virtual void SetSize(const gfx::Size& size);
118 virtual HWND GetPluginHWND(); 116 virtual HWND GetPluginHWND();
119 virtual void ForwardMouseEventToRenderer(UINT message, 117 virtual void ForwardMouseEventToRenderer(UINT message,
120 WPARAM wparam, 118 WPARAM wparam,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 LRESULT OnImeComposition( 156 LRESULT OnImeComposition(
159 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 157 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
160 LRESULT OnImeEndComposition( 158 LRESULT OnImeEndComposition(
161 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 159 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
162 LRESULT OnMouseEvent( 160 LRESULT OnMouseEvent(
163 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 161 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
164 LRESULT OnKeyEvent( 162 LRESULT OnKeyEvent(
165 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 163 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
166 LRESULT OnWheelEvent( 164 LRESULT OnWheelEvent(
167 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); 165 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
168 // Handle WM_NCCALCSIZE and supress scrollbars
169 LRESULT OnNcCalcSize(UINT, WPARAM, LPARAM, BOOL& handled);
170 // Handle WM_SIZE and indicate that we have a valid scroll info
171 // so that windows will give us the WS_HSCROLL and WS_VSCROLL style.
172 LRESULT OnSize(UINT, WPARAM, LPARAM, BOOL& handled);
173 LRESULT OnMouseActivate(UINT, WPARAM, LPARAM, BOOL& handled); 166 LRESULT OnMouseActivate(UINT, WPARAM, LPARAM, BOOL& handled);
174 // Handle vertical scrolling 167 // Handle vertical scrolling
175 LRESULT OnVScroll(int code, short position, HWND scrollbar_control); 168 LRESULT OnVScroll(int code, short position, HWND scrollbar_control);
176 // Handle horizontal scrolling 169 // Handle horizontal scrolling
177 LRESULT OnHScroll(int code, short position, HWND scrollbar_control); 170 LRESULT OnHScroll(int code, short position, HWND scrollbar_control);
178 171
179 void OnFinalMessage(HWND window); 172 void OnFinalMessage(HWND window);
180 173
181 private: 174 private:
182 // Tells Windows that we want to hear about mouse exit messages. 175 // Tells Windows that we want to hear about mouse exit messages.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // The time at which this view started displaying white pixels as a result of 249 // The time at which this view started displaying white pixels as a result of
257 // not having anything to paint (empty backing store from renderer). This 250 // not having anything to paint (empty backing store from renderer). This
258 // value returns true for is_null() if we are not recording whiteout times. 251 // value returns true for is_null() if we are not recording whiteout times.
259 TimeTicks whiteout_start_time_; 252 TimeTicks whiteout_start_time_;
260 253
261 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND); 254 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHostHWND);
262 }; 255 };
263 256
264 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__ 257 #endif // #ifndef CHROME_BROWSER_RENDER_WIDGET_HOST_CONTAINER_H__
265 258
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/render_widget_host_hwnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698