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

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

Issue 6840060: Progress towards fixing 77536 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 6 #define CHROME_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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void SelectionChanged(const std::string& text); 87 virtual void SelectionChanged(const std::string& text);
88 virtual void ShowingContextMenu(bool showing); 88 virtual void ShowingContextMenu(bool showing);
89 virtual BackingStore* AllocBackingStore(const gfx::Size& size); 89 virtual BackingStore* AllocBackingStore(const gfx::Size& size);
90 virtual void SetBackground(const SkBitmap& background); 90 virtual void SetBackground(const SkBitmap& background);
91 virtual void CreatePluginContainer(gfx::PluginWindowHandle id); 91 virtual void CreatePluginContainer(gfx::PluginWindowHandle id);
92 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id); 92 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id);
93 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate); 93 virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate);
94 virtual bool ContainsNativeView(gfx::NativeView native_view) const; 94 virtual bool ContainsNativeView(gfx::NativeView native_view) const;
95 95
96 virtual void AcceleratedCompositingActivated(bool activated); 96 virtual void AcceleratedCompositingActivated(bool activated);
97 virtual gfx::PluginWindowHandle AcquireCompositingSurface(); 97 virtual gfx::PluginWindowHandle GetCompositingSurface();
98 virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface);
99 98
100 // ui::AnimationDelegate implementation. 99 // ui::AnimationDelegate implementation.
101 virtual void AnimationEnded(const ui::Animation* animation); 100 virtual void AnimationEnded(const ui::Animation* animation);
102 virtual void AnimationProgressed(const ui::Animation* animation); 101 virtual void AnimationProgressed(const ui::Animation* animation);
103 virtual void AnimationCanceled(const ui::Animation* animation); 102 virtual void AnimationCanceled(const ui::Animation* animation);
104 103
105 gfx::NativeView native_view() const { return view_.get(); } 104 gfx::NativeView native_view() const { return view_.get(); }
106 105
107 // If the widget is aligned with an edge of the monitor its on and the user 106 // If the widget is aligned with an edge of the monitor its on and the user
108 // attempts to drag past that edge we track the number of times it has 107 // attempts to drag past that edge we track the number of times it has
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // The number of times the user has dragged against horizontal edge of the 240 // The number of times the user has dragged against horizontal edge of the
242 // monitor (if the widget is aligned with that edge). Negative values 241 // monitor (if the widget is aligned with that edge). Negative values
243 // indicate the left edge, positive the right. 242 // indicate the left edge, positive the right.
244 int dragged_at_horizontal_edge_; 243 int dragged_at_horizontal_edge_;
245 244
246 // The number of times the user has dragged against vertical edge of the 245 // The number of times the user has dragged against vertical edge of the
247 // monitor (if the widget is aligned with that edge). Negative values 246 // monitor (if the widget is aligned with that edge). Negative values
248 // indicate the top edge, positive the bottom. 247 // indicate the top edge, positive the bottom.
249 int dragged_at_vertical_edge_; 248 int dragged_at_vertical_edge_;
250 249
251 bool accelerated_surface_acquired_; 250 gfx::PluginWindowHandle compositing_surface_;
252 251
253 // The event for the last mouse down we handled. We need this for context 252 // The event for the last mouse down we handled. We need this for context
254 // menus and drags. 253 // menus and drags.
255 GdkEventButton* last_mouse_down_; 254 GdkEventButton* last_mouse_down_;
256 255
257 #if defined(OS_CHROMEOS) 256 #if defined(OS_CHROMEOS)
258 // Custimized tooltip window. 257 // Custimized tooltip window.
259 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 258 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
260 #endif // defined(OS_CHROMEOS) 259 #endif // defined(OS_CHROMEOS)
261 }; 260 };
262 261
263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 262 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host_ui_shim.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698