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

Side by Side Diff: chrome/renderer/render_widget.h

Issue 48149: Use cocoa controls for HTML select popups in test_shell (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | chrome/renderer/render_widget.cc » ('j') | webkit/glue/webwidget_delegate.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_WIDGET_H__ 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H__
6 #define CHROME_RENDERER_RENDER_WIDGET_H__ 6 #define CHROME_RENDERER_RENDER_WIDGET_H__
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void CloseWidgetSoon(WebWidget* webwidget); 73 virtual void CloseWidgetSoon(WebWidget* webwidget);
74 virtual void Focus(WebWidget* webwidget); 74 virtual void Focus(WebWidget* webwidget);
75 virtual void Blur(WebWidget* webwidget); 75 virtual void Blur(WebWidget* webwidget);
76 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect); 76 virtual void GetWindowRect(WebWidget* webwidget, gfx::Rect* rect);
77 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect); 77 virtual void SetWindowRect(WebWidget* webwidget, const gfx::Rect& rect);
78 virtual void GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect); 78 virtual void GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect);
79 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect); 79 virtual void GetRootWindowResizerRect(WebWidget* webwidget, gfx::Rect* rect);
80 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move); 80 virtual void DidMove(WebWidget* webwidget, const WebPluginGeometry& move);
81 virtual void RunModal(WebWidget* webwidget) {} 81 virtual void RunModal(WebWidget* webwidget) {}
82 virtual bool IsHidden() { return is_hidden_; } 82 virtual bool IsHidden() { return is_hidden_; }
83 virtual void ShowWithItems(WebWidget* webwidget,
darin (slow to review) 2009/04/01 18:23:42 nit: please list the methods in the order in which
84 const gfx::Rect& bounds,
85 int item_height,
86 int selected_index,
87 const std::vector<MenuItem>& items);
83 88
84 // Close the underlying WebWidget. 89 // Close the underlying WebWidget.
85 void Close(); 90 void Close();
86 91
87 protected: 92 protected:
88 // Friend RefCounted so that the dtor can be non-public. Using this class 93 // Friend RefCounted so that the dtor can be non-public. Using this class
89 // without ref-counting is an error. 94 // without ref-counting is an error.
90 friend class base::RefCounted<RenderWidget>; 95 friend class base::RefCounted<RenderWidget>;
91 96
92 RenderWidget(RenderThreadBase* render_thread, bool activatable); 97 RenderWidget(RenderThreadBase* render_thread, bool activatable);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // Whether the window for this RenderWidget can be activated. 260 // Whether the window for this RenderWidget can be activated.
256 bool activatable_; 261 bool activatable_;
257 262
258 // Holds all the needed plugin window moves for a scroll. 263 // Holds all the needed plugin window moves for a scroll.
259 std::vector<WebPluginGeometry> plugin_window_moves_; 264 std::vector<WebPluginGeometry> plugin_window_moves_;
260 265
261 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget); 266 DISALLOW_EVIL_CONSTRUCTORS(RenderWidget);
262 }; 267 };
263 268
264 #endif // CHROME_RENDERER_RENDER_WIDGET_H__ 269 #endif // CHROME_RENDERER_RENDER_WIDGET_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_widget.cc » ('j') | webkit/glue/webwidget_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698