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

Side by Side Diff: ui/views/corewm/focus_change_shim.h

Issue 11308322: events: Start changing EventHandler interface to not return a value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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/corewm/activation_change_shim.cc ('k') | ui/views/corewm/focus_change_shim.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_COREWM_FOCUS_CHANGE_SHIM_ 5 #ifndef UI_VIEWS_COREWM_FOCUS_CHANGE_SHIM_
6 #define UI_VIEWS_COREWM_FOCUS_CHANGE_SHIM_ 6 #define UI_VIEWS_COREWM_FOCUS_CHANGE_SHIM_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 15 matching lines...) Expand all
26 : public aura::client::FocusChangeObserver, 26 : public aura::client::FocusChangeObserver,
27 public ui::EventHandler { 27 public ui::EventHandler {
28 protected: 28 protected:
29 explicit FocusChangeShim(ui::EventTarget* target); 29 explicit FocusChangeShim(ui::EventTarget* target);
30 virtual ~FocusChangeShim(); 30 virtual ~FocusChangeShim();
31 31
32 // Overridden from aura::client::FocusChangeObserver: 32 // Overridden from aura::client::FocusChangeObserver:
33 virtual void OnWindowFocused(aura::Window* window) OVERRIDE; 33 virtual void OnWindowFocused(aura::Window* window) OVERRIDE;
34 34
35 // Overridden from ui::EventHandler: 35 // Overridden from ui::EventHandler:
36 virtual ui::EventResult OnEvent(ui::Event* event) OVERRIDE; 36 virtual void OnEvent(ui::Event* event) OVERRIDE;
37 37
38 private: 38 private:
39 ui::EventTarget* target_; 39 ui::EventTarget* target_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(FocusChangeShim); 41 DISALLOW_COPY_AND_ASSIGN(FocusChangeShim);
42 }; 42 };
43 43
44 } // namespace corewm 44 } // namespace corewm
45 } // namespace views 45 } // namespace views
46 46
47 #endif // UI_VIEWS_COREWM_FOCUS_CHANGE_SHIM_ 47 #endif // UI_VIEWS_COREWM_FOCUS_CHANGE_SHIM_
OLDNEW
« no previous file with comments | « ui/views/corewm/activation_change_shim.cc ('k') | ui/views/corewm/focus_change_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698