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

Side by Side Diff: ui/views/controls/menu/menu_host.cc

Issue 1543173002: Switch to standard integer types in ui/views/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 #include "ui/views/controls/menu/menu_host.h" 5 #include "ui/views/controls/menu/menu_host.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "build/build_config.h"
9 #include "ui/events/gestures/gesture_recognizer.h" 10 #include "ui/events/gestures/gesture_recognizer.h"
10 #include "ui/gfx/path.h" 11 #include "ui/gfx/path.h"
11 #include "ui/native_theme/native_theme.h" 12 #include "ui/native_theme/native_theme.h"
12 #include "ui/views/controls/menu/menu_controller.h" 13 #include "ui/views/controls/menu/menu_controller.h"
13 #include "ui/views/controls/menu/menu_host_root_view.h" 14 #include "ui/views/controls/menu/menu_host_root_view.h"
14 #include "ui/views/controls/menu/menu_item_view.h" 15 #include "ui/views/controls/menu/menu_item_view.h"
15 #include "ui/views/controls/menu/menu_scroll_view_container.h" 16 #include "ui/views/controls/menu/menu_scroll_view_container.h"
16 #include "ui/views/controls/menu/submenu_view.h" 17 #include "ui/views/controls/menu/submenu_view.h"
17 #include "ui/views/round_rect_painter.h" 18 #include "ui/views/round_rect_painter.h"
18 #include "ui/views/widget/native_widget_private.h" 19 #include "ui/views/widget/native_widget_private.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 166 }
166 menu_controller->OnDragComplete(should_close); 167 menu_controller->OnDragComplete(should_close);
167 168
168 // We may have lost capture in the drag and drop, but are remaining open. 169 // We may have lost capture in the drag and drop, but are remaining open.
169 // Return capture so we get MouseCaptureLost events. 170 // Return capture so we get MouseCaptureLost events.
170 if (!should_close) 171 if (!should_close)
171 native_widget_private()->SetCapture(); 172 native_widget_private()->SetCapture();
172 } 173 }
173 174
174 } // namespace views 175 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698