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

Side by Side Diff: content/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: Fix CPoint to POINT. Created 9 years, 9 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_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 size and move itself to the specified size and point in
100 // screen space.
101 virtual void SetBounds(const gfx::Rect& rect) = 0;
102
99 // Retrieves the native view used to contain plugins and identify the 103 // Retrieves the native view used to contain plugins and identify the
100 // renderer in IPC messages. 104 // renderer in IPC messages.
101 virtual gfx::NativeView GetNativeView() = 0; 105 virtual gfx::NativeView GetNativeView() = 0;
102 106
103 // Moves all plugin windows as described in the given list. 107 // Moves all plugin windows as described in the given list.
104 virtual void MovePluginWindows( 108 virtual void MovePluginWindows(
105 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; 109 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0;
106 110
107 // Actually set/take focus to/from the associated View component. 111 // Actually set/take focus to/from the associated View component.
108 virtual void Focus() = 0; 112 virtual void Focus() = 0;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 322
319 // The current reserved area in view coordinates where contents should not be 323 // The current reserved area in view coordinates where contents should not be
320 // rendered to draw the resize corner, sidebar mini tabs etc. 324 // rendered to draw the resize corner, sidebar mini tabs etc.
321 gfx::Rect reserved_rect_; 325 gfx::Rect reserved_rect_;
322 326
323 private: 327 private:
324 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 328 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
325 }; 329 };
326 330
327 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 331 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698