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

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

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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) 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_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void StoreFocus(); 62 virtual void StoreFocus();
63 virtual void RestoreFocus(); 63 virtual void RestoreFocus();
64 64
65 // Backend implementation of RenderViewHostDelegate::View. 65 // Backend implementation of RenderViewHostDelegate::View.
66 virtual void ShowContextMenu(const ContextMenuParams& params); 66 virtual void ShowContextMenu(const ContextMenuParams& params);
67 virtual void StartDragging(const WebDropData& drop_data, 67 virtual void StartDragging(const WebDropData& drop_data,
68 WebKit::WebDragOperationsMask allowed_ops); 68 WebKit::WebDragOperationsMask allowed_ops);
69 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 69 virtual void UpdateDragCursor(WebKit::WebDragOperation operation);
70 virtual void GotFocus(); 70 virtual void GotFocus();
71 virtual void TakeFocus(bool reverse); 71 virtual void TakeFocus(bool reverse);
72 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
73 72
74 // NotificationObserver implementation --------------------------------------- 73 // NotificationObserver implementation ---------------------------------------
75 74
76 virtual void Observe(NotificationType type, 75 virtual void Observe(NotificationType type,
77 const NotificationSource& source, 76 const NotificationSource& source,
78 const NotificationDetails& details); 77 const NotificationDetails& details);
79 78
80 private: 79 private:
81 // Insert the given widget into the content area. Should only be used for 80 // Insert the given widget into the content area. Should only be used for
82 // web pages and the like (including interstitials and sad tab). Note that 81 // web pages and the like (including interstitials and sad tab). Note that
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 scoped_ptr<TabContentsDragSource> drag_source_; 137 scoped_ptr<TabContentsDragSource> drag_source_;
139 138
140 // The size we want the tab contents view to be. We keep this in a separate 139 // The size we want the tab contents view to be. We keep this in a separate
141 // variable because resizing in GTK+ is async. 140 // variable because resizing in GTK+ is async.
142 gfx::Size requested_size_; 141 gfx::Size requested_size_;
143 142
144 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 143 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
145 }; 144 };
146 145
147 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 146 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view.cc ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698