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

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

Issue 3319004: Mac: Make resizing the window larger nicer when compositor is active (Closed)
Patch Set: comments Created 10 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #import <QuartzCore/CALayer.h> 10 #import <QuartzCore/CALayer.h>
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // not having anything to paint (empty backing store from renderer). This 277 // not having anything to paint (empty backing store from renderer). This
278 // value returns true for is_null() if we are not recording whiteout times. 278 // value returns true for is_null() if we are not recording whiteout times.
279 base::TimeTicks whiteout_start_time_; 279 base::TimeTicks whiteout_start_time_;
280 280
281 // The time it took after this view was selected for it to be fully painted. 281 // The time it took after this view was selected for it to be fully painted.
282 base::TimeTicks tab_switch_paint_time_; 282 base::TimeTicks tab_switch_paint_time_;
283 283
284 // Current text input type. 284 // Current text input type.
285 WebKit::WebTextInputType text_input_type_; 285 WebKit::WebTextInputType text_input_type_;
286 286
287 typedef std::map<gfx::PluginWindowHandle, NSView*> PluginViewMap;
288 PluginViewMap plugin_views_; // Weak values.
289
290 // Helper class for managing instances of accelerated plug-ins.
291 AcceleratedSurfaceContainerManagerMac plugin_container_manager_;
292
287 private: 293 private:
288 // Updates the display cursor to the current cursor if the cursor is over this 294 // Updates the display cursor to the current cursor if the cursor is over this
289 // render view. 295 // render view.
290 void UpdateCursorIfOverSelf(); 296 void UpdateCursorIfOverSelf();
291 297
292 // Shuts down the render_widget_host_. This is a separate function so we can 298 // Shuts down the render_widget_host_. This is a separate function so we can
293 // invoke it from the message loop. 299 // invoke it from the message loop.
294 void ShutdownHost(); 300 void ShutdownHost();
295 301
296 // The associated view. This is weak and is inserted into the view hierarchy 302 // The associated view. This is weak and is inserted into the view hierarchy
297 // to own this RenderWidgetHostViewMac object unless is_popup_menu_ is true. 303 // to own this RenderWidgetHostViewMac object unless is_popup_menu_ is true.
298 // In that case, cocoa_view_ is never inserted into the view hierarchy, so 304 // In that case, cocoa_view_ is never inserted into the view hierarchy, so
299 // the RenderWidgetHostViewMac will treat it as a strong reference and will 305 // the RenderWidgetHostViewMac will treat it as a strong reference and will
300 // release it when told to destroy (for example, because a pop-up menu has 306 // release it when told to destroy (for example, because a pop-up menu has
301 // closed). 307 // closed).
302 RenderWidgetHostViewCocoa* cocoa_view_; 308 RenderWidgetHostViewCocoa* cocoa_view_;
303 309
304 typedef std::map<gfx::PluginWindowHandle, NSView*> PluginViewMap;
305 PluginViewMap plugin_views_; // Weak values.
306
307 // The cursor for the page. This is passed up from the renderer. 310 // The cursor for the page. This is passed up from the renderer.
308 WebCursor current_cursor_; 311 WebCursor current_cursor_;
309 312
310 // Indicates if the page is loading. 313 // Indicates if the page is loading.
311 bool is_loading_; 314 bool is_loading_;
312 315
313 // true if the View is not visible. 316 // true if the View is not visible.
314 bool is_hidden_; 317 bool is_hidden_;
315 318
316 // True if the widget is a native popup menu. The renderer code calls this 319 // True if the widget is a native popup menu. The renderer code calls this
317 // an "external popup." 320 // an "external popup."
318 bool is_popup_menu_; 321 bool is_popup_menu_;
319 322
320 // The text to be shown in the tooltip, supplied by the renderer. 323 // The text to be shown in the tooltip, supplied by the renderer.
321 std::wstring tooltip_text_; 324 std::wstring tooltip_text_;
322 325
323 // Factory used to safely scope delayed calls to ShutdownHost(). 326 // Factory used to safely scope delayed calls to ShutdownHost().
324 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; 327 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
325 328
326 // Used for positioning a popup menu. 329 // Used for positioning a popup menu.
327 NSView* parent_view_; 330 NSView* parent_view_;
328 331
329 // Helper class for managing instances of accelerated plug-ins.
330 AcceleratedSurfaceContainerManagerMac plugin_container_manager_;
331
332 // Whether or not web accessibility is enabled. 332 // Whether or not web accessibility is enabled.
333 bool renderer_accessible_; 333 bool renderer_accessible_;
334 334
335 // selected text on the renderer. 335 // selected text on the renderer.
336 std::string selected_text_; 336 std::string selected_text_;
337 337
338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
339 }; 339 };
340 340
341 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 341 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698