| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_UTIL_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_UTIL_H_ |
| 7 |
| 8 // Utility functions for ExtensionActions that depend on code in the browser |
| 9 // component. |
| 10 |
| 11 class ExtensionAction; |
| 12 |
| 13 namespace gfx { |
| 14 class Canvas; |
| 15 class Rect; |
| 16 } |
| 17 namespace ui { |
| 18 class ThemeProvider; |
| 19 } |
| 20 |
| 21 namespace extensions { |
| 22 |
| 23 // Paint the background and border for |action| on |tab_id|. |bounds| should |
| 24 // include the top and bottom of the location bar, and the middle column |
| 25 // exactly between two ExtensionActions, so both ExtensionActions can draw on |
| 26 // it. This background is only drawn for script badges in the WANTS_ATTENTION |
| 27 // state, and consists of a dark grey, 1px border and a lighter grey |
| 28 // background with a slight vertical gradient. |
| 29 void PaintBackground(const ExtensionAction& action, |
| 30 int tab_id, |
| 31 gfx::Canvas* canvas, |
| 32 const gfx::Rect& bounds, |
| 33 const ui::ThemeProvider& theme); |
| 34 |
| 35 } // namespace extensions |
| 36 |
| 37 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACTION_UTIL_H_ |
| OLD | NEW |