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

Side by Side Diff: chrome/browser/ui/views/frame/contents_web_view.h

Issue 1939913002: Use the NTP background color instead of white when there is no other info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/contents_web_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 // Sets the status bubble, which should be repositioned every time 31 // Sets the status bubble, which should be repositioned every time
32 // this view changes visible bounds. 32 // this view changes visible bounds.
33 void SetStatusBubble(StatusBubbleViews* status_bubble); 33 void SetStatusBubble(StatusBubbleViews* status_bubble);
34 34
35 // WebView overrides: 35 // WebView overrides:
36 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; 36 bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
37 void OnVisibleBoundsChanged() override; 37 void OnVisibleBoundsChanged() override;
38 void ViewHierarchyChanged( 38 void ViewHierarchyChanged(
39 const ViewHierarchyChangedDetails& details) override; 39 const ViewHierarchyChangedDetails& details) override;
40 void OnThemeChanged() override; 40 void OnThemeChanged() override;
41 void RenderViewReady() override;
41 42
42 // ui::LayerOwnerDelegate overrides: 43 // ui::LayerOwnerDelegate overrides:
43 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override; 44 void OnLayerRecreated(ui::Layer* old_layer, ui::Layer* new_layer) override;
44 45
45 // WebContentsCloseHandlerDelegate overrides: 46 // WebContentsCloseHandlerDelegate overrides:
46 void CloneWebContentsLayer() override; 47 void CloneWebContentsLayer() override;
47 void DestroyClonedLayer() override; 48 void DestroyClonedLayer() override;
48 49
49 private: 50 private:
50 StatusBubbleViews* status_bubble_; 51 StatusBubbleViews* status_bubble_;
51 52
52 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_; 53 std::unique_ptr<ui::LayerTreeOwner> cloned_layer_tree_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(ContentsWebView); 55 DISALLOW_COPY_AND_ASSIGN(ContentsWebView);
55 }; 56 };
56 57
57 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/contents_web_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698