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

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_win.h

Issue 40065: RenderWidgetHost now stores both the WebKeyboardEvent and the native (Closed)
Patch Set: Redesign Created 11 years, 9 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
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_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
7 7
8 #include "base/gfx/size.h" 8 #include "base/gfx/size.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/tab_contents/web_contents_view.h" 10 #include "chrome/browser/tab_contents/web_contents_view.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void ShowCreatedWindowInternal(WebContents* new_web_contents, 52 virtual void ShowCreatedWindowInternal(WebContents* new_web_contents,
53 WindowOpenDisposition disposition, 53 WindowOpenDisposition disposition,
54 const gfx::Rect& initial_pos, 54 const gfx::Rect& initial_pos,
55 bool user_gesture); 55 bool user_gesture);
56 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, 56 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
57 const gfx::Rect& initial_pos); 57 const gfx::Rect& initial_pos);
58 virtual void ShowContextMenu(const ContextMenuParams& params); 58 virtual void ShowContextMenu(const ContextMenuParams& params);
59 virtual void StartDragging(const WebDropData& drop_data); 59 virtual void StartDragging(const WebDropData& drop_data);
60 virtual void UpdateDragCursor(bool is_drop_target); 60 virtual void UpdateDragCursor(bool is_drop_target);
61 virtual void TakeFocus(bool reverse); 61 virtual void TakeFocus(bool reverse);
62 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event); 62 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
63 63
64 private: 64 private:
65 // Windows events ------------------------------------------------------------ 65 // Windows events ------------------------------------------------------------
66 66
67 // Overrides from WidgetWin. 67 // Overrides from WidgetWin.
68 virtual void OnDestroy(); 68 virtual void OnDestroy();
69 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); 69 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar);
70 virtual void OnMouseLeave(); 70 virtual void OnMouseLeave();
71 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param); 71 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param);
72 virtual void OnPaint(HDC junk_dc); 72 virtual void OnPaint(HDC junk_dc);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // visible. 110 // visible.
111 scoped_ptr<SadTabView> sad_tab_; 111 scoped_ptr<SadTabView> sad_tab_;
112 112
113 // Whether to ignore the next CHAR keyboard event. 113 // Whether to ignore the next CHAR keyboard event.
114 bool ignore_next_char_event_; 114 bool ignore_next_char_event_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); 116 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin);
117 }; 117 };
118 118
119 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 119 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698