OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
10 | 10 |
11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
12 | 12 |
13 #include "base/memory/scoped_nsobject.h" | 13 #include "base/memory/scoped_nsobject.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/task.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h" | 17 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h" |
18 #include "content/browser/accessibility/browser_accessibility_manager.h" | 18 #include "content/browser/accessibility/browser_accessibility_manager.h" |
19 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" | 19 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" |
20 #include "content/browser/renderer_host/render_widget_host_view.h" | 20 #include "content/browser/renderer_host/render_widget_host_view.h" |
21 #include "content/common/edit_command.h" | 21 #include "content/common/edit_command.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
23 #include "ui/base/cocoa/base_view.h" | 23 #include "ui/base/cocoa/base_view.h" |
24 #include "webkit/glue/webcursor.h" | 24 #include "webkit/glue/webcursor.h" |
25 | 25 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // true if the View is not visible. | 391 // true if the View is not visible. |
392 bool is_hidden_; | 392 bool is_hidden_; |
393 | 393 |
394 // Whether we are showing a context menu. | 394 // Whether we are showing a context menu. |
395 bool is_showing_context_menu_; | 395 bool is_showing_context_menu_; |
396 | 396 |
397 // The text to be shown in the tooltip, supplied by the renderer. | 397 // The text to be shown in the tooltip, supplied by the renderer. |
398 string16 tooltip_text_; | 398 string16 tooltip_text_; |
399 | 399 |
400 // Factory used to safely scope delayed calls to ShutdownHost(). | 400 // Factory used to safely scope delayed calls to ShutdownHost(). |
401 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; | 401 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
402 | 402 |
403 // selected text on the renderer. | 403 // selected text on the renderer. |
404 std::string selected_text_; | 404 std::string selected_text_; |
405 | 405 |
406 bool accelerated_compositing_active_; | 406 bool accelerated_compositing_active_; |
407 | 407 |
408 // When rendering transitions from gpu to software, the gpu widget can't be | 408 // When rendering transitions from gpu to software, the gpu widget can't be |
409 // hidden until the software backing store has been updated. This variable is | 409 // hidden until the software backing store has been updated. This variable is |
410 // set when the gpu widget needs to be hidden once a paint is completed. | 410 // set when the gpu widget needs to be hidden once a paint is completed. |
411 bool needs_gpu_visibility_update_after_repaint_; | 411 bool needs_gpu_visibility_update_after_repaint_; |
(...skipping 11 matching lines...) Expand all Loading... |
423 | 423 |
424 class RenderWidgetHostView; | 424 class RenderWidgetHostView; |
425 class RenderWidgetHost; | 425 class RenderWidgetHost; |
426 | 426 |
427 namespace render_widget_host_view_mac { | 427 namespace render_widget_host_view_mac { |
428 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( | 428 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( |
429 RenderWidgetHost* widget); | 429 RenderWidgetHost* widget); |
430 } | 430 } |
431 | 431 |
432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |