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

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: Fixing another compile error 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // element accepts text input. 249 // element accepts text input.
250 virtual void FocusedNodeTouched(bool editable) {} 250 virtual void FocusedNodeTouched(bool editable) {}
251 251
252 // Return this object cast to a WebContents, if it is one. If the object is 252 // Return this object cast to a WebContents, if it is one. If the object is
253 // not a WebContents, returns nullptr. 253 // not a WebContents, returns nullptr.
254 virtual WebContents* GetAsWebContents(); 254 virtual WebContents* GetAsWebContents();
255 255
256 // Notifies that a CompositorFrame was received from the renderer. 256 // Notifies that a CompositorFrame was received from the renderer.
257 virtual void DidReceiveCompositorFrame() {} 257 virtual void DidReceiveCompositorFrame() {}
258 258
259 // Returns true if there is context menu shown on page.
260 virtual bool IsShowingContextMenuOnPage() const;
261
259 protected: 262 protected:
260 virtual ~RenderWidgetHostDelegate() {} 263 virtual ~RenderWidgetHostDelegate() {}
261 }; 264 };
262 265
263 } // namespace content 266 } // namespace content
264 267
265 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 268 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698