| 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 // The current composition character range and its bounds. | 543 // The current composition character range and its bounds. |
| 544 gfx::Range composition_range_; | 544 gfx::Range composition_range_; |
| 545 std::vector<gfx::Rect> composition_bounds_; | 545 std::vector<gfx::Rect> composition_bounds_; |
| 546 | 546 |
| 547 // Whether a request for begin frames has been issued. | 547 // Whether a request for begin frames has been issued. |
| 548 bool needs_begin_frames_; | 548 bool needs_begin_frames_; |
| 549 | 549 |
| 550 // Whether a request to flush input has been issued. | 550 // Whether a request to flush input has been issued. |
| 551 bool needs_flush_input_; | 551 bool needs_flush_input_; |
| 552 | 552 |
| 553 // TODO(ekaramad): Remove the following locals and get the selection |
| 554 // information directly from TextInputManager. |
| 555 // A buffer containing the text inside and around the current selection range. |
| 556 base::string16 selection_text_; |
| 557 |
| 558 // The offset of the text stored in |selection_text_| relative to the start of |
| 559 // the web page. |
| 560 size_t selection_text_offset_; |
| 561 |
| 562 // The current selection range relative to the start of the web page. |
| 563 gfx::Range selection_range_; |
| 564 |
| 553 // Factory used to safely scope delayed calls to ShutdownHost(). | 565 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 566 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 555 | 567 |
| 556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 568 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 557 }; | 569 }; |
| 558 | 570 |
| 559 } // namespace content | 571 } // namespace content |
| 560 | 572 |
| 561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 573 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |