Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |