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

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

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/ozone/platform/caca/caca_window.h ('k') | ui/ozone/platform/dri/dri_window.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 #include "ui/ozone/platform/caca/caca_window.h" 5 #include "ui/ozone/platform/caca/caca_window.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "ui/events/platform/platform_event_source.h" 11 #include "ui/events/platform/platform_event_source.h"
12 #include "ui/ozone/platform/caca/caca_event_factory.h" 12 #include "ui/ozone/platform/caca/caca_event_factory.h"
13 #include "ui/ozone/platform/caca/caca_window_manager.h" 13 #include "ui/ozone/platform/caca/caca_window_manager.h"
14 #include "ui/platform_window/platform_window_delegate.h" 14 #include "ui/platform_window/types/platform_window_delegate.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 namespace { 18 namespace {
19 19
20 // Size of initial cnavas (in characters). 20 // Size of initial cnavas (in characters).
21 const int kDefaultCanvasWidth = 160; 21 const int kDefaultCanvasWidth = 160;
22 const int kDefaultCanvasHeight = 48; 22 const int kDefaultCanvasHeight = 48;
23 23
24 } // namespace 24 } // namespace
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 bool CacaWindow::CanDispatchEvent(const PlatformEvent& event) { return true; } 130 bool CacaWindow::CanDispatchEvent(const PlatformEvent& event) { return true; }
131 131
132 uint32_t CacaWindow::DispatchEvent(const PlatformEvent& ne) { 132 uint32_t CacaWindow::DispatchEvent(const PlatformEvent& ne) {
133 // We don't dispatch events via PlatformEventSource. 133 // We don't dispatch events via PlatformEventSource.
134 NOTREACHED(); 134 NOTREACHED();
135 return ui::POST_DISPATCH_STOP_PROPAGATION; 135 return ui::POST_DISPATCH_STOP_PROPAGATION;
136 } 136 }
137 137
138 } // namespace ui 138 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/caca_window.h ('k') | ui/ozone/platform/dri/dri_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698