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_BUBBLE_BORDER_WIDGET_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_BORDER_WIDGET_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BORDER_WIDGET_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BORDER_WIDGET_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/views/bubble/bubble_border.h" | 9 #include "ui/views/bubble/bubble_border.h" |
10 #include "views/widget/native_widget_win.h" | 10 #include "ui/views/widget/native_widget_win.h" |
11 | 11 |
12 class BorderContents; | 12 class BorderContents; |
13 | 13 |
14 // This is a window that surrounds the info bubble and paints the margin and | 14 // This is a window that surrounds the info bubble and paints the margin and |
15 // border. It is a separate window so that it can be a layered window, so that | 15 // border. It is a separate window so that it can be a layered window, so that |
16 // we can use >1-bit alpha shadow images on the borders, which look nicer than | 16 // we can use >1-bit alpha shadow images on the borders, which look nicer than |
17 // the Windows CS_DROPSHADOW shadows. The info bubble window itself cannot be a | 17 // the Windows CS_DROPSHADOW shadows. The info bubble window itself cannot be a |
18 // layered window because that prevents it from hosting native child controls. | 18 // layered window because that prevents it from hosting native child controls. |
19 class BorderWidgetWin : public views::NativeWidgetWin { | 19 class BorderWidgetWin : public views::NativeWidgetWin { |
20 public: | 20 public: |
(...skipping 23 matching lines...) Expand all Loading... |
44 private: | 44 private: |
45 // Overridden from NativeWidgetWin: | 45 // Overridden from NativeWidgetWin: |
46 virtual LRESULT OnMouseActivate(UINT message, | 46 virtual LRESULT OnMouseActivate(UINT message, |
47 WPARAM w_param, | 47 WPARAM w_param, |
48 LPARAM l_param) OVERRIDE; | 48 LPARAM l_param) OVERRIDE; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(BorderWidgetWin); | 50 DISALLOW_COPY_AND_ASSIGN(BorderWidgetWin); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BORDER_WIDGET_WIN_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BORDER_WIDGET_WIN_H_ |
OLD | NEW |