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

Side by Side Diff: content/browser/web_contents/interstitial_page_impl.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_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 WebKit::WebPopupType popup_type) OVERRIDE; 106 WebKit::WebPopupType popup_type) OVERRIDE;
107 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE; 107 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
108 virtual void ShowCreatedWindow(int route_id, 108 virtual void ShowCreatedWindow(int route_id,
109 WindowOpenDisposition disposition, 109 WindowOpenDisposition disposition,
110 const gfx::Rect& initial_pos, 110 const gfx::Rect& initial_pos,
111 bool user_gesture) OVERRIDE; 111 bool user_gesture) OVERRIDE;
112 virtual void ShowCreatedWidget(int route_id, 112 virtual void ShowCreatedWidget(int route_id,
113 const gfx::Rect& initial_pos) OVERRIDE; 113 const gfx::Rect& initial_pos) OVERRIDE;
114 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE; 114 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
115 virtual void ShowContextMenu( 115 virtual void ShowContextMenu(
116 const content::ContextMenuParams& params) OVERRIDE; 116 const content::ContextMenuParams& params,
117 const content::ContextMenuSourceType& type) OVERRIDE;
117 118
118 // RenderWidgetHostDelegate implementation: 119 // RenderWidgetHostDelegate implementation:
119 virtual bool PreHandleKeyboardEvent( 120 virtual bool PreHandleKeyboardEvent(
120 const content::NativeWebKeyboardEvent& event, 121 const content::NativeWebKeyboardEvent& event,
121 bool* is_keyboard_shortcut) OVERRIDE; 122 bool* is_keyboard_shortcut) OVERRIDE;
122 virtual void HandleKeyboardEvent( 123 virtual void HandleKeyboardEvent(
123 const content::NativeWebKeyboardEvent& event) OVERRIDE; 124 const content::NativeWebKeyboardEvent& event) OVERRIDE;
124 125
125 bool enabled() const { return enabled_; } 126 bool enabled() const { return enabled_; }
126 content::WebContents* web_contents() const; 127 content::WebContents* web_contents() const;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 mutable content::RendererPreferences renderer_preferences_; 209 mutable content::RendererPreferences renderer_preferences_;
209 210
210 bool create_view_; 211 bool create_view_;
211 212
212 scoped_ptr<content::InterstitialPageDelegate> delegate_; 213 scoped_ptr<content::InterstitialPageDelegate> delegate_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 215 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
215 }; 216 };
216 217
217 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_ 218 #endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698