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/memory/weak_ptr.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" | |
19 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" | 18 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" |
20 #include "content/browser/renderer_host/render_widget_host_view.h" | 19 #include "content/browser/renderer_host/render_widget_host_view.h" |
21 #include "content/common/edit_command.h" | 20 #include "content/common/edit_command.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
23 #include "ui/base/cocoa/base_view.h" | 22 #include "ui/base/cocoa/base_view.h" |
24 #include "webkit/glue/webcursor.h" | 23 #include "webkit/glue/webcursor.h" |
25 | 24 |
26 @class AcceleratedPluginView; | 25 @class AcceleratedPluginView; |
27 class RenderWidgetHostViewMac; | 26 class RenderWidgetHostViewMac; |
28 @class RenderWidgetHostViewMacDelegate; | 27 @class RenderWidgetHostViewMacDelegate; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // needs access to them and can't be made a friend. | 308 // needs access to them and can't be made a friend. |
310 | 309 |
311 // The associated Model. Can be NULL if Destroy() is called when | 310 // The associated Model. Can be NULL if Destroy() is called when |
312 // someone (other than superview) has retained |cocoa_view_|. | 311 // someone (other than superview) has retained |cocoa_view_|. |
313 RenderWidgetHost* render_widget_host_; | 312 RenderWidgetHost* render_widget_host_; |
314 | 313 |
315 // This is true when we are currently painting and thus should handle extra | 314 // This is true when we are currently painting and thus should handle extra |
316 // paint requests by expanding the invalid rect rather than actually painting. | 315 // paint requests by expanding the invalid rect rather than actually painting. |
317 bool about_to_validate_and_paint_; | 316 bool about_to_validate_and_paint_; |
318 | 317 |
319 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | |
320 | |
321 // This is true when we have already scheduled a call to | 318 // This is true when we have already scheduled a call to |
322 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to | 319 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to |
323 // prevent us from scheduling multiple calls. | 320 // prevent us from scheduling multiple calls. |
324 bool call_set_needs_display_in_rect_pending_; | 321 bool call_set_needs_display_in_rect_pending_; |
325 | 322 |
326 // Whether last rendered frame was accelerated. | 323 // Whether last rendered frame was accelerated. |
327 bool last_frame_was_accelerated_; | 324 bool last_frame_was_accelerated_; |
328 | 325 |
329 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect. | 326 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect. |
330 // This value is only meaningful when | 327 // This value is only meaningful when |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 408 |
412 class RenderWidgetHostView; | 409 class RenderWidgetHostView; |
413 class RenderWidgetHost; | 410 class RenderWidgetHost; |
414 | 411 |
415 namespace render_widget_host_view_mac { | 412 namespace render_widget_host_view_mac { |
416 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( | 413 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( |
417 RenderWidgetHost* widget); | 414 RenderWidgetHost* widget); |
418 } | 415 } |
419 | 416 |
420 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |