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

Side by Side Diff: ash/wm/overview/transparent_activate_window_button.h

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ash/wm/overview/scoped_window_copy.cc ('k') | ash/wm/overview/window_grid.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 // Transparent window that covers window selector items and handles mouse and 13 // Transparent window that covers window selector items and handles mouse and
14 // gestures on overview mode for them. 14 // gestures on overview mode for them.
15 class TransparentActivateWindowButton : public views::ButtonListener { 15 class TransparentActivateWindowButton : public views::ButtonListener {
16 public: 16 public:
17 explicit TransparentActivateWindowButton(aura::Window* activate_window); 17 explicit TransparentActivateWindowButton(aura::Window* activate_window);
18 virtual ~TransparentActivateWindowButton(); 18 virtual ~TransparentActivateWindowButton();
19 19
20 // Sets the bounds of the transparent window. 20 // Sets the bounds of the transparent window.
21 void SetBounds(const gfx::Rect& bounds); 21 void SetBounds(const gfx::Rect& bounds);
22 22
23 // Sends an a11y focus alert so that if chromevox is enabled, the window title 23 // Sends an a11y focus alert so that if chromevox is enabled, the window title
24 // is read. 24 // is read.
25 void SendFocusAlert() const; 25 void SendFocusAlert() const;
26 26
27 // views::ButtonListener: 27 // views::ButtonListener:
28 virtual void ButtonPressed(views::Button* sender, 28 virtual void ButtonPressed(views::Button* sender,
29 const ui::Event& event) OVERRIDE; 29 const ui::Event& event) override;
30 30
31 private: 31 private:
32 // The transparent window event handler widget itself. 32 // The transparent window event handler widget itself.
33 scoped_ptr<views::Widget> event_handler_widget_; 33 scoped_ptr<views::Widget> event_handler_widget_;
34 34
35 // Pointer to the window that the button activates. 35 // Pointer to the window that the button activates.
36 aura::Window* activate_window_; 36 aura::Window* activate_window_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(TransparentActivateWindowButton); 38 DISALLOW_COPY_AND_ASSIGN(TransparentActivateWindowButton);
39 }; 39 };
40 40
41 } // namespace ash 41 } // namespace ash
42 42
43 #endif // ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_ 43 #endif // ASH_WM_OVERVIEW_TRANSPARENT_ACTIVATE_WINDOW_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/wm/overview/scoped_window_copy.cc ('k') | ash/wm/overview/window_grid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698