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

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

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Basic implementation shared by concrete RenderWidgetHostView subclasses. 60 // Basic implementation shared by concrete RenderWidgetHostView subclasses.
61 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, 61 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
62 public IPC::Listener { 62 public IPC::Listener {
63 public: 63 public:
64 ~RenderWidgetHostViewBase() override; 64 ~RenderWidgetHostViewBase() override;
65 65
66 // RenderWidgetHostView implementation. 66 // RenderWidgetHostView implementation.
67 void SetBackgroundColor(SkColor color) override; 67 void SetBackgroundColor(SkColor color) override;
68 void SetBackgroundColorToDefault() final; 68 void SetBackgroundColorToDefault() final;
69 bool GetBackgroundOpaque() override; 69 bool GetBackgroundOpaque() override;
70 void SetThemeColor(SkColor color) override;
70 ui::TextInputClient* GetTextInputClient() override; 71 ui::TextInputClient* GetTextInputClient() override;
71 void WasUnOccluded() override {} 72 void WasUnOccluded() override {}
72 void WasOccluded() override {} 73 void WasOccluded() override {}
73 bool IsShowingContextMenu() const override; 74 bool IsShowingContextMenu() const override;
74 void SetShowingContextMenu(bool showing_menu) override; 75 void SetShowingContextMenu(bool showing_menu) override;
75 base::string16 GetSelectedText() const override; 76 base::string16 GetSelectedText() const override;
76 bool IsMouseLocked() override; 77 bool IsMouseLocked() override;
77 gfx::Size GetVisibleViewportSize() const override; 78 gfx::Size GetVisibleViewportSize() const override;
78 void SetInsets(const gfx::Insets& insets) override; 79 void SetInsets(const gfx::Insets& insets) override;
79 void BeginFrameSubscription( 80 void BeginFrameSubscription(
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 424 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
424 425
425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 426 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
426 427
427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
428 }; 429 };
429 430
430 } // namespace content 431 } // namespace content
431 432
432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698