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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_container_view.h

Issue 2705763002: InfoBarContainerView: Redraws infobars on a native theme change (Closed)
Patch Set: Remove dependent Patchset Created 3 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 gfx::Size GetPreferredSize() const override; 25 gfx::Size GetPreferredSize() const override;
26 const char* GetClassName() const override; 26 const char* GetClassName() const override;
27 void Layout() override; 27 void Layout() override;
28 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 28 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
29 29
30 // InfobarContainer: 30 // InfobarContainer:
31 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, 31 void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
32 size_t position) override; 32 size_t position) override;
33 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override; 33 void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override;
34 34
35 // views::View:
Peter Kasting 2017/02/18 01:26:20 Nit: This class doesn't directly subclass View, pl
Tom (Use chromium acct) 2017/02/18 01:54:13 Done.
36 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
37
35 private: 38 private:
36 // This view draws the shadow over the web contents below the 39 // This view draws the shadow over the web contents below the
37 // lowest infobar. A separate view with a layer is used so it can 40 // lowest infobar. A separate view with a layer is used so it can
38 // draw outside the bounds of |this|. 41 // draw outside the bounds of |this|.
39 views::View* content_shadow_; 42 views::View* content_shadow_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView); 44 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView);
42 }; 45 };
43 46
44 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_ 47 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698