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

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

Issue 1943183002: Transfer theme & page background colors between changes of RWHV. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@noflash
Patch Set: Created 4 years, 7 months 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 public IPC::Listener { 76 public IPC::Listener {
77 public: 77 public:
78 ~RenderWidgetHostViewBase() override; 78 ~RenderWidgetHostViewBase() override;
79 79
80 float current_device_scale_factor() const { 80 float current_device_scale_factor() const {
81 return current_device_scale_factor_; 81 return current_device_scale_factor_;
82 } 82 }
83 83
84 // RenderWidgetHostView implementation. 84 // RenderWidgetHostView implementation.
85 void SetBackgroundColor(SkColor color) override; 85 void SetBackgroundColor(SkColor color) override;
86 SkColor background_color() override;
86 void SetBackgroundColorToDefault() final; 87 void SetBackgroundColorToDefault() final;
87 bool GetBackgroundOpaque() override; 88 bool GetBackgroundOpaque() override;
88 ui::TextInputClient* GetTextInputClient() override; 89 ui::TextInputClient* GetTextInputClient() override;
89 void WasUnOccluded() override {} 90 void WasUnOccluded() override {}
90 void WasOccluded() override {} 91 void WasOccluded() override {}
91 bool IsShowingContextMenu() const override; 92 bool IsShowingContextMenu() const override;
92 void SetShowingContextMenu(bool showing_menu) override; 93 void SetShowingContextMenu(bool showing_menu) override;
93 base::string16 GetSelectedText() const override; 94 base::string16 GetSelectedText() const override;
94 bool IsMouseLocked() override; 95 bool IsMouseLocked() override;
95 gfx::Size GetVisibleViewportSize() const override; 96 gfx::Size GetVisibleViewportSize() const override;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 436 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
436 437
437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 438 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
438 439
439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
440 }; 441 };
441 442
442 } // namespace content 443 } // namespace content
443 444
444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698