OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. | 549 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. |
550 base::TimeTicks vsync_timebase_; | 550 base::TimeTicks vsync_timebase_; |
551 base::TimeDelta vsync_interval_; | 551 base::TimeDelta vsync_interval_; |
552 | 552 |
553 // Whether a request for begin frames has been issued. | 553 // Whether a request for begin frames has been issued. |
554 bool needs_begin_frames_; | 554 bool needs_begin_frames_; |
555 | 555 |
556 // Whether a request to flush input has been issued. | 556 // Whether a request to flush input has been issued. |
557 bool needs_flush_input_; | 557 bool needs_flush_input_; |
558 | 558 |
559 // The background color of the web content. | 559 // The background color of the web content. This color will be drawn when the |
560 SkColor background_color_; | 560 // web content is not able to draw in time. |
| 561 SkColor background_color_ = SK_ColorTRANSPARENT; |
561 | 562 |
562 // Factory used to safely scope delayed calls to ShutdownHost(). | 563 // Factory used to safely scope delayed calls to ShutdownHost(). |
563 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 564 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
564 | 565 |
565 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 566 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
566 }; | 567 }; |
567 | 568 |
568 } // namespace content | 569 } // namespace content |
569 | 570 |
570 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 571 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |