| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 // The cursor for the page. This is passed up from the renderer. | 374 // The cursor for the page. This is passed up from the renderer. |
| 375 WebCursor current_cursor_; | 375 WebCursor current_cursor_; |
| 376 | 376 |
| 377 // Indicates if the page is loading. | 377 // Indicates if the page is loading. |
| 378 bool is_loading_; | 378 bool is_loading_; |
| 379 | 379 |
| 380 // true if the View is not visible. | 380 // true if the View is not visible. |
| 381 bool is_hidden_; | 381 bool is_hidden_; |
| 382 | 382 |
| 383 // Whether we are showing a context menu. | |
| 384 bool is_showing_context_menu_; | |
| 385 | |
| 386 // The text to be shown in the tooltip, supplied by the renderer. | 383 // The text to be shown in the tooltip, supplied by the renderer. |
| 387 string16 tooltip_text_; | 384 string16 tooltip_text_; |
| 388 | 385 |
| 389 // Factory used to safely scope delayed calls to ShutdownHost(). | 386 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 390 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 387 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 391 | 388 |
| 392 // selected text on the renderer. | 389 // selected text on the renderer. |
| 393 std::string selected_text_; | 390 std::string selected_text_; |
| 394 | 391 |
| 395 bool accelerated_compositing_active_; | 392 bool accelerated_compositing_active_; |
| 396 | 393 |
| 397 // When rendering transitions from gpu to software, the gpu widget can't be | 394 // When rendering transitions from gpu to software, the gpu widget can't be |
| 398 // hidden until the software backing store has been updated. This variable is | 395 // hidden until the software backing store has been updated. This variable is |
| 399 // set when the gpu widget needs to be hidden once a paint is completed. | 396 // set when the gpu widget needs to be hidden once a paint is completed. |
| 400 bool needs_gpu_visibility_update_after_repaint_; | 397 bool needs_gpu_visibility_update_after_repaint_; |
| 401 | 398 |
| 402 gfx::PluginWindowHandle compositing_surface_; | 399 gfx::PluginWindowHandle compositing_surface_; |
| 403 | 400 |
| 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 401 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 405 }; | 402 }; |
| 406 | 403 |
| 407 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 404 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |