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

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

Issue 147246: Linux: middle-click to navigate (Closed)
Patch Set: ... Created 11 years, 6 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
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | webkit/glue/webview_impl.h » ('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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_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/tab_contents_view.h" 10 #include "chrome/browser/tab_contents/tab_contents_view.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void StoreFocus(); 46 virtual void StoreFocus();
47 virtual void RestoreFocus(); 47 virtual void RestoreFocus();
48 48
49 // Backend implementation of RenderViewHostDelegate::View. 49 // Backend implementation of RenderViewHostDelegate::View.
50 virtual void ShowContextMenu(const ContextMenuParams& params); 50 virtual void ShowContextMenu(const ContextMenuParams& params);
51 virtual void StartDragging(const WebDropData& drop_data); 51 virtual void StartDragging(const WebDropData& drop_data);
52 virtual void UpdateDragCursor(bool is_drop_target); 52 virtual void UpdateDragCursor(bool is_drop_target);
53 virtual void GotFocus(); 53 virtual void GotFocus();
54 virtual void TakeFocus(bool reverse); 54 virtual void TakeFocus(bool reverse);
55 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 55 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
56 virtual void HandleMouseButtonEvent(const WebKit::WebInputEvent* event);
56 57
57 private: 58 private:
58 // Signal handlers ----------------------------------------------------------- 59 // Signal handlers -----------------------------------------------------------
59 60
60 // Overridden from views::WidgetGtk: 61 // Overridden from views::WidgetGtk:
61 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); 62 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation);
62 63
63 // Handles notifying the TabContents and other operations when the window was 64 // Handles notifying the TabContents and other operations when the window was
64 // shown or hidden. 65 // shown or hidden.
65 void WasHidden(); 66 void WasHidden();
(...skipping 12 matching lines...) Expand all
78 // Whether to ignore the next CHAR keyboard event. 79 // Whether to ignore the next CHAR keyboard event.
79 bool ignore_next_char_event_; 80 bool ignore_next_char_event_;
80 81
81 // The context menu. Callbacks are asynchronous so we need to keep it around. 82 // The context menu. Callbacks are asynchronous so we need to keep it around.
82 scoped_ptr<RenderViewContextMenuWin> context_menu_; 83 scoped_ptr<RenderViewContextMenuWin> context_menu_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 85 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
85 }; 86 };
86 87
87 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 88 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698