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

Side by Side Diff: ui/aura/root_window_host_ozone.h

Issue 135563004: Nukes MessageLoop::Dispatcher (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 11 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AURA_ROOT_WINDOW_HOST_OZONE_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_OZONE_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_OZONE_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_OZONE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_pump_dispatcher.h"
12 #include "ui/aura/window_tree_host.h" 12 #include "ui/aura/window_tree_host.h"
13 #include "ui/gfx/insets.h" 13 #include "ui/gfx/insets.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 15
16 namespace aura { 16 namespace aura {
17 17
18 class WindowTreeHostOzone : public WindowTreeHost, 18 class WindowTreeHostOzone : public WindowTreeHost,
19 public base::MessageLoop::Dispatcher { 19 public base::MessagePumpDispatcher {
20 public: 20 public:
21 explicit WindowTreeHostOzone(const gfx::Rect& bounds); 21 explicit WindowTreeHostOzone(const gfx::Rect& bounds);
22 virtual ~WindowTreeHostOzone(); 22 virtual ~WindowTreeHostOzone();
23 23
24 private: 24 private:
25 // Overridden from Dispatcher overrides: 25 // Overridden from Dispatcher overrides:
26 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; 26 virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
27 27
28 // WindowTreeHost Overrides. 28 // WindowTreeHost Overrides.
29 virtual RootWindow* GetRootWindow() OVERRIDE; 29 virtual RootWindow* GetRootWindow() OVERRIDE;
(...skipping 20 matching lines...) Expand all
50 50
51 gfx::AcceleratedWidget widget_; 51 gfx::AcceleratedWidget widget_;
52 gfx::Rect bounds_; 52 gfx::Rect bounds_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); 54 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone);
55 }; 55 };
56 56
57 } // namespace aura 57 } // namespace aura
58 58
59 #endif // UI_AURA_ROOT_WINDOW_HOST_OZONE_H_ 59 #endif // UI_AURA_ROOT_WINDOW_HOST_OZONE_H_
OLDNEW
« base/run_loop.h ('K') | « ui/aura/env.cc ('k') | ui/aura/root_window_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698