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

Side by Side Diff: content/browser/web_contents/web_contents_view_win.h

Issue 10917102: Context menus should appear above the touch point if invoked by long press. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void RestoreFocus() OVERRIDE; 73 virtual void RestoreFocus() OVERRIDE;
74 virtual bool IsDoingDrag() const OVERRIDE; 74 virtual bool IsDoingDrag() const OVERRIDE;
75 virtual void CancelDragAndCloseTab() OVERRIDE; 75 virtual void CancelDragAndCloseTab() OVERRIDE;
76 virtual WebDropData* GetDropData() const OVERRIDE; 76 virtual WebDropData* GetDropData() const OVERRIDE;
77 virtual bool IsEventTracking() const OVERRIDE; 77 virtual bool IsEventTracking() const OVERRIDE;
78 virtual void CloseTabAfterEventTracking() OVERRIDE; 78 virtual void CloseTabAfterEventTracking() OVERRIDE;
79 virtual gfx::Rect GetViewBounds() const OVERRIDE; 79 virtual gfx::Rect GetViewBounds() const OVERRIDE;
80 80
81 // Implementation of RenderViewHostDelegateView. 81 // Implementation of RenderViewHostDelegateView.
82 virtual void ShowContextMenu( 82 virtual void ShowContextMenu(
83 const content::ContextMenuParams& params) OVERRIDE; 83 const content::ContextMenuParams& params,
84 const content::ContextMenuSourceType& type) OVERRIDE;
84 virtual void ShowPopupMenu(const gfx::Rect& bounds, 85 virtual void ShowPopupMenu(const gfx::Rect& bounds,
85 int item_height, 86 int item_height,
86 double item_font_size, 87 double item_font_size,
87 int selected_item, 88 int selected_item,
88 const std::vector<WebMenuItem>& items, 89 const std::vector<WebMenuItem>& items,
89 bool right_aligned, 90 bool right_aligned,
90 bool allow_multiple_selection) OVERRIDE; 91 bool allow_multiple_selection) OVERRIDE;
91 virtual void StartDragging(const WebDropData& drop_data, 92 virtual void StartDragging(const WebDropData& drop_data,
92 WebKit::WebDragOperationsMask operations, 93 WebKit::WebDragOperationsMask operations,
93 const gfx::ImageSkia& image, 94 const gfx::ImageSkia& image,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // Used to close the tab after the stack has unwound. 147 // Used to close the tab after the stack has unwound.
147 base::OneShotTimer<WebContentsViewWin> close_tab_timer_; 148 base::OneShotTimer<WebContentsViewWin> close_tab_timer_;
148 149
149 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_; 150 scoped_ptr<ui::HWNDMessageFilter> hwnd_message_filter_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); 152 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin);
152 }; 153 };
153 154
154 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 155 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698