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

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

Issue 1992006: Do right-alignment of popups when WebKit indicates to do so. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Allocate a video layer for this view. 162 // Allocate a video layer for this view.
163 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size) = 0; 163 virtual VideoLayer* AllocVideoLayer(const gfx::Size& size) = 0;
164 164
165 #if defined(OS_MACOSX) 165 #if defined(OS_MACOSX)
166 // Display a native control popup menu for WebKit. 166 // Display a native control popup menu for WebKit.
167 virtual void ShowPopupWithItems(gfx::Rect bounds, 167 virtual void ShowPopupWithItems(gfx::Rect bounds,
168 int item_height, 168 int item_height,
169 double item_font_size, 169 double item_font_size,
170 int selected_item, 170 int selected_item,
171 const std::vector<WebMenuItem>& items) = 0; 171 const std::vector<WebMenuItem>& items,
172 bool right_aligned) = 0;
172 173
173 // Get the view's position on the screen. 174 // Get the view's position on the screen.
174 virtual gfx::Rect GetWindowRect() = 0; 175 virtual gfx::Rect GetWindowRect() = 0;
175 176
176 // Get the view's window's position on the screen. 177 // Get the view's window's position on the screen.
177 virtual gfx::Rect GetRootWindowRect() = 0; 178 virtual gfx::Rect GetRootWindowRect() = 0;
178 179
179 // Set the view's active state (i.e., tint state of controls). 180 // Set the view's active state (i.e., tint state of controls).
180 virtual void SetActive(bool active) = 0; 181 virtual void SetActive(bool active) = 0;
181 182
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 // A custom background to paint behind the web content. This will be tiled 253 // A custom background to paint behind the web content. This will be tiled
253 // horizontally. Can be null, in which case we fall back to painting white. 254 // horizontally. Can be null, in which case we fall back to painting white.
254 SkBitmap background_; 255 SkBitmap background_;
255 256
256 private: 257 private:
257 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 258 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
258 }; 259 };
259 260
260 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 261 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698