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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 float current_device_scale_factor() const { | 86 float current_device_scale_factor() const { |
87 return current_device_scale_factor_; | 87 return current_device_scale_factor_; |
88 } | 88 } |
89 | 89 |
90 // Returns the focused RenderWidgetHost inside this |view|'s RWH. | 90 // Returns the focused RenderWidgetHost inside this |view|'s RWH. |
91 RenderWidgetHostImpl* GetFocusedWidget() const; | 91 RenderWidgetHostImpl* GetFocusedWidget() const; |
92 | 92 |
93 // RenderWidgetHostView implementation. | 93 // RenderWidgetHostView implementation. |
94 RenderWidgetHost* GetRenderWidgetHost() const override; | 94 RenderWidgetHost* GetRenderWidgetHost() const override; |
95 void SetBackgroundColor(SkColor color) override; | |
96 SkColor background_color() override; | |
97 void SetBackgroundColorToDefault() final; | 95 void SetBackgroundColorToDefault() final; |
98 bool GetBackgroundOpaque() override; | |
99 ui::TextInputClient* GetTextInputClient() override; | 96 ui::TextInputClient* GetTextInputClient() override; |
100 void WasUnOccluded() override {} | 97 void WasUnOccluded() override {} |
101 void WasOccluded() override {} | 98 void WasOccluded() override {} |
102 bool IsShowingContextMenu() const override; | 99 bool IsShowingContextMenu() const override; |
103 void SetShowingContextMenu(bool showing_menu) override; | 100 void SetShowingContextMenu(bool showing_menu) override; |
104 void SetIsInVR(bool is_in_vr) override; | 101 void SetIsInVR(bool is_in_vr) override; |
105 base::string16 GetSelectedText() override; | 102 base::string16 GetSelectedText() override; |
106 bool IsMouseLocked() override; | 103 bool IsMouseLocked() override; |
107 gfx::Size GetVisibleViewportSize() const override; | 104 gfx::Size GetVisibleViewportSize() const override; |
108 void SetInsets(const gfx::Insets& insets) override; | 105 void SetInsets(const gfx::Insets& insets) override; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 420 |
424 void NotifyObserversAboutShutdown(); | 421 void NotifyObserversAboutShutdown(); |
425 | 422 |
426 // Is this a fullscreen view? | 423 // Is this a fullscreen view? |
427 bool is_fullscreen_; | 424 bool is_fullscreen_; |
428 | 425 |
429 // Whether this view is a popup and what kind of popup it is (select, | 426 // Whether this view is a popup and what kind of popup it is (select, |
430 // autofill...). | 427 // autofill...). |
431 blink::WebPopupType popup_type_; | 428 blink::WebPopupType popup_type_; |
432 | 429 |
433 // The background color of the web content. | |
434 SkColor background_color_; | |
435 | |
436 // While the mouse is locked, the cursor is hidden from the user. Mouse events | 430 // While the mouse is locked, the cursor is hidden from the user. Mouse events |
437 // are still generated. However, the position they report is the last known | 431 // are still generated. However, the position they report is the last known |
438 // mouse position just as mouse lock was entered; the movement they report | 432 // mouse position just as mouse lock was entered; the movement they report |
439 // indicates what the change in position of the mouse would be had it not been | 433 // indicates what the change in position of the mouse would be had it not been |
440 // locked. | 434 // locked. |
441 bool mouse_locked_; | 435 bool mouse_locked_; |
442 | 436 |
443 // Whether we are showing a context menu. | 437 // Whether we are showing a context menu. |
444 bool showing_context_menu_; | 438 bool showing_context_menu_; |
445 | 439 |
(...skipping 21 matching lines...) Expand all Loading... |
467 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 461 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
468 | 462 |
469 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 463 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
470 | 464 |
471 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 465 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
472 }; | 466 }; |
473 | 467 |
474 } // namespace content | 468 } // namespace content |
475 | 469 |
476 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 470 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |