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

Side by Side Diff: views/controls/native_control_gtk.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 | « views/controls/native_control.cc ('k') | views/controls/native_control_win.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/controls/native_control_gtk.h" 5 #include "views/controls/native_control_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
11 #include "ui/views/focus/focus_manager.h" 11 #include "ui/views/focus/focus_manager.h"
12 #include "views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 #if defined(TOUCH_UI) 14 #if defined(TOUCH_UI)
15 namespace { 15 namespace {
16 16
17 GdkEvent* MouseButtonEvent(const views::MouseEvent& mouseev, 17 GdkEvent* MouseButtonEvent(const views::MouseEvent& mouseev,
18 const views::NativeViewHost* source) { 18 const views::NativeViewHost* source) {
19 GdkEvent* event = NULL; 19 GdkEvent* event = NULL;
20 switch (mouseev.type()) { 20 switch (mouseev.type()) {
21 case ui::ET_MOUSE_PRESSED: 21 case ui::ET_MOUSE_PRESSED:
22 event = gdk_event_new(GDK_BUTTON_PRESS); 22 event = gdk_event_new(GDK_BUTTON_PRESS);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // options page is only based on views. 234 // options page is only based on views.
235 // NOTREACHED(); 235 // NOTREACHED();
236 NOTIMPLEMENTED(); 236 NOTIMPLEMENTED();
237 return false; 237 return false;
238 } 238 }
239 focus_manager->SetFocusedView(control->focus_view()); 239 focus_manager->SetFocusedView(control->focus_view());
240 return false; 240 return false;
241 } 241 }
242 242
243 } // namespace views 243 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/native_control.cc ('k') | views/controls/native_control_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698