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

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 2 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool user_gesture, 121 bool user_gesture,
122 const GURL& creator_url); 122 const GURL& creator_url);
123 virtual void ShowCreatedWidget(int route_id, 123 virtual void ShowCreatedWidget(int route_id,
124 const gfx::Rect& initial_pos); 124 const gfx::Rect& initial_pos);
125 virtual void ShowContextMenu(const ContextMenuParams& params); 125 virtual void ShowContextMenu(const ContextMenuParams& params);
126 virtual void StartDragging(const WebDropData& drop_data, 126 virtual void StartDragging(const WebDropData& drop_data,
127 WebKit::WebDragOperationsMask allowed_operations); 127 WebKit::WebDragOperationsMask allowed_operations);
128 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 128 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
129 virtual void GotFocus(); 129 virtual void GotFocus();
130 virtual void TakeFocus(bool reverse); 130 virtual void TakeFocus(bool reverse);
131 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event);
131 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 132 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
132 virtual void HandleMouseEvent(); 133 virtual void HandleMouseEvent();
133 virtual void HandleMouseLeave(); 134 virtual void HandleMouseLeave();
134 virtual void UpdatePreferredWidth(int pref_width); 135 virtual void UpdatePreferredWidth(int pref_width);
135 136
136 // NotificationObserver 137 // NotificationObserver
137 virtual void Observe(NotificationType type, 138 virtual void Observe(NotificationType type,
138 const NotificationSource& source, 139 const NotificationSource& source,
139 const NotificationDetails& details); 140 const NotificationDetails& details);
140 141
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 195 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
195 196
196 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here, 197 // Only EXTENSION_TOOLSTRIP and EXTENSION_BACKGROUND_PAGE are used here,
197 // others are not hostd by ExtensionHost. 198 // others are not hostd by ExtensionHost.
198 ViewType::Type extension_host_type_; 199 ViewType::Type extension_host_type_;
199 200
200 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 201 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
201 }; 202 };
202 203
203 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 204 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698