| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 // A buffer containing the text inside and around the current selection range. | 559 // A buffer containing the text inside and around the current selection range. |
| 559 base::string16 selection_text_; | 560 base::string16 selection_text_; |
| 560 | 561 |
| 561 // The offset of the text stored in |selection_text_| relative to the start of | 562 // The offset of the text stored in |selection_text_| relative to the start of |
| 562 // the web page. | 563 // the web page. |
| 563 size_t selection_text_offset_; | 564 size_t selection_text_offset_; |
| 564 | 565 |
| 565 // The current selection range relative to the start of the web page. | 566 // The current selection range relative to the start of the web page. |
| 566 gfx::Range selection_range_; | 567 gfx::Range selection_range_; |
| 567 | 568 |
| 569 // The background color of the widget. |
| 570 SkColor background_color_; |
| 571 |
| 568 // Factory used to safely scope delayed calls to ShutdownHost(). | 572 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 569 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 573 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 570 | 574 |
| 571 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 575 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 572 }; | 576 }; |
| 573 | 577 |
| 574 } // namespace content | 578 } // namespace content |
| 575 | 579 |
| 576 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 580 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |