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

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

Issue 9316073: Expose contextual menu state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void RenderViewGone(base::TerminationStatus status, 82 virtual void RenderViewGone(base::TerminationStatus status,
83 int error_code) OVERRIDE; 83 int error_code) OVERRIDE;
84 virtual void Destroy() OVERRIDE; 84 virtual void Destroy() OVERRIDE;
85 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} 85 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {}
86 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 86 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
87 virtual void SelectionChanged(const string16& text, 87 virtual void SelectionChanged(const string16& text,
88 size_t offset, 88 size_t offset,
89 const ui::Range& range) OVERRIDE; 89 const ui::Range& range) OVERRIDE;
90 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 90 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
91 const gfx::Rect& end_rect) OVERRIDE; 91 const gfx::Rect& end_rect) OVERRIDE;
92 virtual void ShowingContextMenu(bool showing) OVERRIDE;
93 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 92 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
94 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 93 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
95 virtual void AcceleratedSurfaceBuffersSwapped( 94 virtual void AcceleratedSurfaceBuffersSwapped(
96 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 95 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
97 int gpu_host_id) OVERRIDE; 96 int gpu_host_id) OVERRIDE;
98 virtual void AcceleratedSurfacePostSubBuffer( 97 virtual void AcceleratedSurfacePostSubBuffer(
99 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 98 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
100 int gpu_host_id) OVERRIDE; 99 int gpu_host_id) OVERRIDE;
101 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 100 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
102 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 101 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 202
204 // Whether or not this widget is hidden. 203 // Whether or not this widget is hidden.
205 bool is_hidden_; 204 bool is_hidden_;
206 205
207 // Whether we are currently loading. 206 // Whether we are currently loading.
208 bool is_loading_; 207 bool is_loading_;
209 208
210 // The cursor for the page. This is passed up from the renderer. 209 // The cursor for the page. This is passed up from the renderer.
211 WebCursor current_cursor_; 210 WebCursor current_cursor_;
212 211
213 // Whether we are showing a context menu.
214 bool is_showing_context_menu_;
215
216 // The time at which this view started displaying white pixels as a result of 212 // The time at which this view started displaying white pixels as a result of
217 // not having anything to paint (empty backing store from renderer). This 213 // not having anything to paint (empty backing store from renderer). This
218 // value returns true for is_null() if we are not recording whiteout times. 214 // value returns true for is_null() if we are not recording whiteout times.
219 base::TimeTicks whiteout_start_time_; 215 base::TimeTicks whiteout_start_time_;
220 216
221 // The time it took after this view was selected for it to be fully painted. 217 // The time it took after this view was selected for it to be fully painted.
222 base::TimeTicks tab_switch_paint_time_; 218 base::TimeTicks tab_switch_paint_time_;
223 219
224 // The native view of our parent widget. Used only for popups. 220 // The native view of our parent widget. Used only for popups.
225 GtkWidget* parent_; 221 GtkWidget* parent_;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 291
296 #if defined(OS_CHROMEOS) 292 #if defined(OS_CHROMEOS)
297 // Custimized tooltip window. 293 // Custimized tooltip window.
298 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_; 294 scoped_ptr<ui::TooltipWindowGtk> tooltip_window_;
299 #endif // defined(OS_CHROMEOS) 295 #endif // defined(OS_CHROMEOS)
300 296
301 ui::GtkSignalRegistrar signals_; 297 ui::GtkSignalRegistrar signals_;
302 }; 298 };
303 299
304 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 300 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698