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

Side by Side Diff: ui/ozone/platform/caca/caca_window.h

Issue 667823002: PlatformEventDispatcher::DispatchEvent() should return a PostDispatchAction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui_enums
Patch Set: Fix platform_event_source_unittest.cc 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 | « ui/gl/gl_surface_glx.cc ('k') | ui/ozone/platform/caca/caca_window.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 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 UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
7 7
8 #include <caca.h> 8 #include <caca.h>
9 9
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void ReleaseCapture() override; 56 virtual void ReleaseCapture() override;
57 virtual void ToggleFullscreen() override; 57 virtual void ToggleFullscreen() override;
58 virtual void Maximize() override; 58 virtual void Maximize() override;
59 virtual void Minimize() override; 59 virtual void Minimize() override;
60 virtual void Restore() override; 60 virtual void Restore() override;
61 virtual void SetCursor(PlatformCursor cursor) override; 61 virtual void SetCursor(PlatformCursor cursor) override;
62 virtual void MoveCursorTo(const gfx::Point& location) override; 62 virtual void MoveCursorTo(const gfx::Point& location) override;
63 63
64 // PlatformEventDispatcher: 64 // PlatformEventDispatcher:
65 virtual bool CanDispatchEvent(const PlatformEvent& event) override; 65 virtual bool CanDispatchEvent(const PlatformEvent& event) override;
66 virtual uint32_t DispatchEvent(const PlatformEvent& event) override; 66 virtual ui::PostDispatchAction DispatchEvent(
67 const PlatformEvent& event) override;
67 68
68 private: 69 private:
69 // Event polling. 70 // Event polling.
70 void TryProcessingEvent(); 71 void TryProcessingEvent();
71 72
72 // Sync sizes with libcaca. 73 // Sync sizes with libcaca.
73 void UpdateDisplaySize(); 74 void UpdateDisplaySize();
74 75
75 PlatformWindowDelegate* delegate_; 76 PlatformWindowDelegate* delegate_;
76 CacaWindowManager* manager_; 77 CacaWindowManager* manager_;
(...skipping 11 matching lines...) Expand all
88 gfx::Size bitmap_size_; 89 gfx::Size bitmap_size_;
89 90
90 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_; 91 base::WeakPtrFactory<CacaWindow> weak_ptr_factory_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(CacaWindow); 93 DISALLOW_COPY_AND_ASSIGN(CacaWindow);
93 }; 94 };
94 95
95 } // namespace ui 96 } // namespace ui
96 97
97 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_ 98 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/ozone/platform/caca/caca_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698