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

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

Issue 6024008: Consider the popup window position when the window shows upward. This patch depends on WebKit patch. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix Mac, and change rwhv according to the move. Created 9 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void InitAsChild(); 52 void InitAsChild();
53 53
54 // RenderWidgetHostView implementation. 54 // RenderWidgetHostView implementation.
55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
56 const gfx::Rect& pos); 56 const gfx::Rect& pos);
57 virtual void InitAsFullscreen(); 57 virtual void InitAsFullscreen();
58 virtual RenderWidgetHost* GetRenderWidgetHost() const; 58 virtual RenderWidgetHost* GetRenderWidgetHost() const;
59 virtual void DidBecomeSelected(); 59 virtual void DidBecomeSelected();
60 virtual void WasHidden(); 60 virtual void WasHidden();
61 virtual void SetSize(const gfx::Size& size); 61 virtual void SetSize(const gfx::Size& size);
62 virtual void SetBounds(const gfx::Rect& rect);
62 virtual gfx::NativeView GetNativeView(); 63 virtual gfx::NativeView GetNativeView();
63 virtual void MovePluginWindows( 64 virtual void MovePluginWindows(
64 const std::vector<webkit::npapi::WebPluginGeometry>& moves); 65 const std::vector<webkit::npapi::WebPluginGeometry>& moves);
65 virtual void Focus(); 66 virtual void Focus();
66 virtual void Blur(); 67 virtual void Blur();
67 virtual bool HasFocus(); 68 virtual bool HasFocus();
68 virtual void Show(); 69 virtual void Show();
69 virtual void Hide(); 70 virtual void Hide();
70 virtual bool IsShowing(); 71 virtual bool IsShowing();
71 virtual gfx::Rect GetViewBounds() const; 72 virtual gfx::Rect GetViewBounds() const;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 bool accelerated_surface_acquired_; 231 bool accelerated_surface_acquired_;
231 232
232 #if defined(OS_CHROMEOS) 233 #if defined(OS_CHROMEOS)
233 // Custimized tooltip window. 234 // Custimized tooltip window.
234 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 235 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
235 #endif // defined(OS_CHROMEOS) 236 #endif // defined(OS_CHROMEOS)
236 }; 237 };
237 238
238 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 239 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698