| OLD | NEW |
| 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 ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ | 5 #ifndef ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ |
| 6 #define ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ | 6 #define ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Sets the accessibility name. | 35 // Sets the accessibility name. |
| 36 void SetAccessibleName(const base::string16& name); | 36 void SetAccessibleName(const base::string16& name); |
| 37 | 37 |
| 38 // Sets the bounds of the transparent window. | 38 // Sets the bounds of the transparent window. |
| 39 void SetBounds(const gfx::Rect& bounds); | 39 void SetBounds(const gfx::Rect& bounds); |
| 40 | 40 |
| 41 // Sends an accessibility focus alert so that if chromevox is enabled, the | 41 // Sends an accessibility focus alert so that if chromevox is enabled, the |
| 42 // window title is read. | 42 // window title is read. |
| 43 void SendFocusAlert() const; | 43 void SendFocusAlert() const; |
| 44 | 44 |
| 45 // Stacks |this| above |activate_button| in the window z-ordering. | |
| 46 void StackAbove(TransparentActivateWindowButton* activate_button); | |
| 47 | |
| 48 private: | 45 private: |
| 49 // The transparent window event handler widget itself. | 46 // The transparent window event handler widget itself. |
| 50 scoped_ptr<views::Widget> event_handler_widget_; | 47 scoped_ptr<views::Widget> event_handler_widget_; |
| 51 | 48 |
| 52 // The transparent button view that handles user input. Not owned. | 49 // The transparent button view that handles user input. Not owned. |
| 53 views::Button* transparent_button_; | 50 views::Button* transparent_button_; |
| 54 | 51 |
| 55 DISALLOW_COPY_AND_ASSIGN(TransparentActivateWindowButton); | 52 DISALLOW_COPY_AND_ASSIGN(TransparentActivateWindowButton); |
| 56 }; | 53 }; |
| 57 | 54 |
| 58 } // namespace ash | 55 } // namespace ash |
| 59 | 56 |
| 60 #endif // ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ | 57 #endif // ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ |
| OLD | NEW |