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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.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: 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_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // Notifies the View that it has become visible. 83 // Notifies the View that it has become visible.
84 virtual void DidBecomeSelected() = 0; 84 virtual void DidBecomeSelected() = 0;
85 85
86 // Notifies the View that it has been hidden. 86 // Notifies the View that it has been hidden.
87 virtual void WasHidden() = 0; 87 virtual void WasHidden() = 0;
88 88
89 // Tells the View to size itself to the specified size. 89 // Tells the View to size itself to the specified size.
90 virtual void SetSize(const gfx::Size& size) = 0; 90 virtual void SetSize(const gfx::Size& size) = 0;
91 91
92 // Tells the View to move itself to the specified point.
93 virtual void SetMove(const gfx::Point& origin) = 0;
Ilya Sherman 2010/12/22 01:16:35 nit: MoveTo() might be a better name for this meth
Ilya Sherman 2010/12/22 01:16:35 If you add this method to RenderWidgetHostView, yo
honten.org 2010/12/22 01:29:41 Yes, you are right. So once this solution is Ok o
94
92 // Retrieves the native view used to contain plugins and identify the 95 // Retrieves the native view used to contain plugins and identify the
93 // renderer in IPC messages. 96 // renderer in IPC messages.
94 virtual gfx::NativeView GetNativeView() = 0; 97 virtual gfx::NativeView GetNativeView() = 0;
95 98
96 // Moves all plugin windows as described in the given list. 99 // Moves all plugin windows as described in the given list.
97 virtual void MovePluginWindows( 100 virtual void MovePluginWindows(
98 const std::vector<webkit_glue::WebPluginGeometry>& moves) = 0; 101 const std::vector<webkit_glue::WebPluginGeometry>& moves) = 0;
99 102
100 // Actually set/take focus to/from the associated View component. 103 // Actually set/take focus to/from the associated View component.
101 virtual void Focus() = 0; 104 virtual void Focus() = 0;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 302
300 // The current reserved area in view coordinates where contents should not be 303 // The current reserved area in view coordinates where contents should not be
301 // rendered to draw the resize corner, sidebar mini tabs etc. 304 // rendered to draw the resize corner, sidebar mini tabs etc.
302 gfx::Rect reserved_rect_; 305 gfx::Rect reserved_rect_;
303 306
304 private: 307 private:
305 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 308 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
306 }; 309 };
307 310
308 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 311 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698