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

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: Try mac and win. Created 9 years, 11 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) 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Notifies the View that it has become visible. 90 // Notifies the View that it has become visible.
91 virtual void DidBecomeSelected() = 0; 91 virtual void DidBecomeSelected() = 0;
92 92
93 // Notifies the View that it has been hidden. 93 // Notifies the View that it has been hidden.
94 virtual void WasHidden() = 0; 94 virtual void WasHidden() = 0;
95 95
96 // Tells the View to size itself to the specified size. 96 // Tells the View to size itself to the specified size.
97 virtual void SetSize(const gfx::Size& size) = 0; 97 virtual void SetSize(const gfx::Size& size) = 0;
98 98
99 // Tells the View to move itself to the specified point.
100 virtual void MoveTo(const gfx::Point& origin) = 0;
Ben Goodger (Google) 2011/02/01 17:57:24 How about replacing both of these methods with vi
101
99 // Retrieves the native view used to contain plugins and identify the 102 // Retrieves the native view used to contain plugins and identify the
100 // renderer in IPC messages. 103 // renderer in IPC messages.
101 virtual gfx::NativeView GetNativeView() = 0; 104 virtual gfx::NativeView GetNativeView() = 0;
102 105
103 // Moves all plugin windows as described in the given list. 106 // Moves all plugin windows as described in the given list.
104 virtual void MovePluginWindows( 107 virtual void MovePluginWindows(
105 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; 108 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0;
106 109
107 // Actually set/take focus to/from the associated View component. 110 // Actually set/take focus to/from the associated View component.
108 virtual void Focus() = 0; 111 virtual void Focus() = 0;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 315
313 // The current reserved area in view coordinates where contents should not be 316 // The current reserved area in view coordinates where contents should not be
314 // rendered to draw the resize corner, sidebar mini tabs etc. 317 // rendered to draw the resize corner, sidebar mini tabs etc.
315 gfx::Rect reserved_rect_; 318 gfx::Rect reserved_rect_;
316 319
317 private: 320 private:
318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
319 }; 322 };
320 323
321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698