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

Side by Side Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 2890143003: Move ContextMenu show/hide state tracking to WebContents (Closed)
Patch Set: Remove #if def Created 3 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
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_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Notifies that a CompositorFrame was received from the renderer. 266 // Notifies that a CompositorFrame was received from the renderer.
267 virtual void DidReceiveCompositorFrame() {} 267 virtual void DidReceiveCompositorFrame() {}
268 268
269 // Gets the size set by a top-level frame with auto-resize enabled. 269 // Gets the size set by a top-level frame with auto-resize enabled.
270 virtual gfx::Size GetAutoResizeSize(); 270 virtual gfx::Size GetAutoResizeSize();
271 271
272 // Reset the auto-size value, to indicate that auto-size is no longer active. 272 // Reset the auto-size value, to indicate that auto-size is no longer active.
273 virtual void ResetAutoResizeSize() {} 273 virtual void ResetAutoResizeSize() {}
274 274
275 // Returns true if there is context menu shown on page.
276 virtual bool IsShowingContextMenuOnPage() const;
277
275 protected: 278 protected:
276 virtual ~RenderWidgetHostDelegate() {} 279 virtual ~RenderWidgetHostDelegate() {}
277 }; 280 };
278 281
279 } // namespace content 282 } // namespace content
280 283
281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698