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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_focus_rules.h

Issue 186733011: Fixes bug that resulted in status bubble getting hidden (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_focus_rules.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_
7 7
8 #include "ui/views/corewm/base_focus_rules.h" 8 #include "ui/views/corewm/base_focus_rules.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 class DesktopFocusRules : public corewm::BaseFocusRules { 12 class DesktopFocusRules : public corewm::BaseFocusRules {
13 public: 13 public:
14 explicit DesktopFocusRules(aura::Window* content_window); 14 explicit DesktopFocusRules(aura::Window* content_window);
15 virtual ~DesktopFocusRules(); 15 virtual ~DesktopFocusRules();
16 16
17 private: 17 private:
18 // Overridden from corewm::BaseFocusRules: 18 // Overridden from corewm::BaseFocusRules:
19 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE;
19 virtual bool SupportsChildActivation(aura::Window* window) const OVERRIDE; 20 virtual bool SupportsChildActivation(aura::Window* window) const OVERRIDE;
20 virtual bool IsWindowConsideredVisibleForActivation( 21 virtual bool IsWindowConsideredVisibleForActivation(
21 aura::Window* window) const OVERRIDE; 22 aura::Window* window) const OVERRIDE;
22 virtual aura::Window* GetToplevelWindow(aura::Window* window) const OVERRIDE; 23 virtual aura::Window* GetToplevelWindow(aura::Window* window) const OVERRIDE;
23 virtual aura::Window* GetNextActivatableWindow( 24 virtual aura::Window* GetNextActivatableWindow(
24 aura::Window* window) const OVERRIDE; 25 aura::Window* window) const OVERRIDE;
25 26
26 // The content window. This is an activatable window even though it is a 27 // The content window. This is an activatable window even though it is a
27 // child. 28 // child.
28 aura::Window* content_window_; 29 aura::Window* content_window_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(DesktopFocusRules); 31 DISALLOW_COPY_AND_ASSIGN(DesktopFocusRules);
31 }; 32 };
32 33
33 } // namespace views 34 } // namespace views
34 35
35 #endif // UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_ 36 #endif // UI_VIEWS_WIDGET_DESKTOP_FOCUS_RULES_H_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_focus_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698