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

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_mac.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_MAC_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void ShowCreatedWindowInternal(WebContents* new_web_contents, 62 virtual void ShowCreatedWindowInternal(WebContents* new_web_contents,
63 WindowOpenDisposition disposition, 63 WindowOpenDisposition disposition,
64 const gfx::Rect& initial_pos, 64 const gfx::Rect& initial_pos,
65 bool user_gesture); 65 bool user_gesture);
66 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view, 66 virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
67 const gfx::Rect& initial_pos); 67 const gfx::Rect& initial_pos);
68 virtual void ShowContextMenu(const ContextMenuParams& params); 68 virtual void ShowContextMenu(const ContextMenuParams& params);
69 virtual void StartDragging(const WebDropData& drop_data); 69 virtual void StartDragging(const WebDropData& drop_data);
70 virtual void UpdateDragCursor(bool is_drop_target); 70 virtual void UpdateDragCursor(bool is_drop_target);
71 virtual void TakeFocus(bool reverse); 71 virtual void TakeFocus(bool reverse);
72 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event); 72 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
73 virtual void OnFindReply(int request_id, 73 virtual void OnFindReply(int request_id,
74 int number_of_matches, 74 int number_of_matches,
75 const gfx::Rect& selection_rect, 75 const gfx::Rect& selection_rect,
76 int active_match_ordinal, 76 int active_match_ordinal,
77 bool final_update); 77 bool final_update);
78 78
79 // NotificationObserver implementation --------------------------------------- 79 // NotificationObserver implementation ---------------------------------------
80 80
81 virtual void Observe(NotificationType type, 81 virtual void Observe(NotificationType type,
82 const NotificationSource& source, 82 const NotificationSource& source,
(...skipping 15 matching lines...) Expand all
98 NotificationRegistrar registrar_; 98 NotificationRegistrar registrar_;
99 99
100 // Used to render the sad tab. This will be non-NULL only when the sad tab is 100 // Used to render the sad tab. This will be non-NULL only when the sad tab is
101 // visible. 101 // visible.
102 scoped_cftyperef<SadTabView*> sad_tab_; 102 scoped_cftyperef<SadTabView*> sad_tab_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); 104 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac);
105 }; 105 };
106 106
107 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ 107 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698