Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(400)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 2466413009: Propagate view background color when changing visible web contents. (Closed)
Patch Set: none Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 float current_device_scale_factor() const { 83 float current_device_scale_factor() const {
84 return current_device_scale_factor_; 84 return current_device_scale_factor_;
85 } 85 }
86 86
87 // Returns the focused RenderWidgetHost inside this |view|'s RWH. 87 // Returns the focused RenderWidgetHost inside this |view|'s RWH.
88 RenderWidgetHostImpl* GetFocusedWidget() const; 88 RenderWidgetHostImpl* GetFocusedWidget() const;
89 89
90 // RenderWidgetHostView implementation. 90 // RenderWidgetHostView implementation.
91 RenderWidgetHost* GetRenderWidgetHost() const override; 91 RenderWidgetHost* GetRenderWidgetHost() const override;
92 void SetBackgroundColor(SkColor color) override; 92 void SetBackgroundColor(SkColor color) override;
93 SkColor background_color() override;
93 void SetBackgroundColorToDefault() final; 94 void SetBackgroundColorToDefault() final;
94 bool GetBackgroundOpaque() override; 95 bool GetBackgroundOpaque() override;
95 ui::TextInputClient* GetTextInputClient() override; 96 ui::TextInputClient* GetTextInputClient() override;
96 void WasUnOccluded() override {} 97 void WasUnOccluded() override {}
97 void WasOccluded() override {} 98 void WasOccluded() override {}
98 bool IsShowingContextMenu() const override; 99 bool IsShowingContextMenu() const override;
99 void SetShowingContextMenu(bool showing_menu) override; 100 void SetShowingContextMenu(bool showing_menu) override;
100 base::string16 GetSelectedText() override; 101 base::string16 GetSelectedText() override;
101 bool IsMouseLocked() override; 102 bool IsMouseLocked() override;
102 gfx::Size GetVisibleViewportSize() const override; 103 gfx::Size GetVisibleViewportSize() const override;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
500 501
501 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
502 503
503 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
504 }; 505 };
505 506
506 } // namespace content 507 } // namespace content
507 508
508 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698