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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 void WasOccluded() override; | 270 void WasOccluded() override; |
271 gfx::Rect GetViewBounds() const override; | 271 gfx::Rect GetViewBounds() const override; |
272 void SetShowingContextMenu(bool showing) override; | 272 void SetShowingContextMenu(bool showing) override; |
273 void SetActive(bool active) override; | 273 void SetActive(bool active) override; |
274 void ShowDefinitionForSelection() override; | 274 void ShowDefinitionForSelection() override; |
275 bool SupportsSpeech() const override; | 275 bool SupportsSpeech() const override; |
276 void SpeakSelection() override; | 276 void SpeakSelection() override; |
277 bool IsSpeaking() const override; | 277 bool IsSpeaking() const override; |
278 void StopSpeaking() override; | 278 void StopSpeaking() override; |
279 void SetBackgroundColor(SkColor color) override; | 279 void SetBackgroundColor(SkColor color) override; |
| 280 SkColor background_color() const override; |
280 void SetNeedsBeginFrames(bool needs_begin_frames) override; | 281 void SetNeedsBeginFrames(bool needs_begin_frames) override; |
281 | 282 |
282 // Implementation of RenderWidgetHostViewBase. | 283 // Implementation of RenderWidgetHostViewBase. |
283 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 284 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
284 const gfx::Rect& pos) override; | 285 const gfx::Rect& pos) override; |
285 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 286 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
286 void Focus() override; | 287 void Focus() override; |
287 void UpdateCursor(const WebCursor& cursor) override; | 288 void UpdateCursor(const WebCursor& cursor) override; |
288 void SetIsLoading(bool is_loading) override; | 289 void SetIsLoading(bool is_loading) override; |
289 void RenderProcessGone(base::TerminationStatus status, | 290 void RenderProcessGone(base::TerminationStatus status, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. | 546 // to SendVSyncParametersToRenderer(), and refreshed regularly thereafter. |
546 base::TimeTicks vsync_timebase_; | 547 base::TimeTicks vsync_timebase_; |
547 base::TimeDelta vsync_interval_; | 548 base::TimeDelta vsync_interval_; |
548 | 549 |
549 // Whether a request for begin frames has been issued. | 550 // Whether a request for begin frames has been issued. |
550 bool needs_begin_frames_; | 551 bool needs_begin_frames_; |
551 | 552 |
552 // Whether a request to flush input has been issued. | 553 // Whether a request to flush input has been issued. |
553 bool needs_flush_input_; | 554 bool needs_flush_input_; |
554 | 555 |
| 556 // The background color of the widget. |
| 557 SkColor background_color_; |
| 558 |
555 // Factory used to safely scope delayed calls to ShutdownHost(). | 559 // Factory used to safely scope delayed calls to ShutdownHost(). |
556 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 560 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
557 | 561 |
558 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 562 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
559 }; | 563 }; |
560 | 564 |
561 } // namespace content | 565 } // namespace content |
562 | 566 |
563 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 567 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |