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

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: Change SetMove to MoveTo Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void InitAsChild(); 49 void InitAsChild();
50 50
51 // RenderWidgetHostView implementation. 51 // RenderWidgetHostView implementation.
52 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 52 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
53 const gfx::Rect& pos); 53 const gfx::Rect& pos);
54 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); 54 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view);
55 virtual RenderWidgetHost* GetRenderWidgetHost() const { return host_; } 55 virtual RenderWidgetHost* GetRenderWidgetHost() const { return host_; }
56 virtual void DidBecomeSelected(); 56 virtual void DidBecomeSelected();
57 virtual void WasHidden(); 57 virtual void WasHidden();
58 virtual void SetSize(const gfx::Size& size); 58 virtual void SetSize(const gfx::Size& size);
59 virtual void MoveTo(const gfx::Point& origin);
59 virtual gfx::NativeView GetNativeView(); 60 virtual gfx::NativeView GetNativeView();
60 virtual void MovePluginWindows( 61 virtual void MovePluginWindows(
61 const std::vector<webkit_glue::WebPluginGeometry>& moves); 62 const std::vector<webkit_glue::WebPluginGeometry>& moves);
62 virtual void Focus(); 63 virtual void Focus();
63 virtual void Blur(); 64 virtual void Blur();
64 virtual bool HasFocus(); 65 virtual bool HasFocus();
65 virtual void Show(); 66 virtual void Show();
66 virtual void Hide(); 67 virtual void Hide();
67 virtual bool IsShowing(); 68 virtual bool IsShowing();
68 virtual gfx::Rect GetViewBounds() const; 69 virtual gfx::Rect GetViewBounds() const;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // indicate the top edge, positive the bottom. 211 // indicate the top edge, positive the bottom.
211 int dragged_at_vertical_edge_; 212 int dragged_at_vertical_edge_;
212 213
213 #if defined(OS_CHROMEOS) 214 #if defined(OS_CHROMEOS)
214 // Custimized tooltip window. 215 // Custimized tooltip window.
215 scoped_ptr<views::TooltipWindowGtk> tooltip_window_; 216 scoped_ptr<views::TooltipWindowGtk> tooltip_window_;
216 #endif // defined(OS_CHROMEOS) 217 #endif // defined(OS_CHROMEOS)
217 }; 218 };
218 219
219 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_ 220 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698