| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/touchui/touch_selection_menu_runner_views.h" | 5 #include "ui/views/touchui/touch_selection_menu_runner_views.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 8 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
| 11 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 12 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 13 #include "ui/gfx/geometry/size.h" | 16 #include "ui/gfx/geometry/size.h" |
| 14 #include "ui/gfx/text_utils.h" | 17 #include "ui/gfx/text_utils.h" |
| 15 #include "ui/strings/grit/ui_strings.h" | 18 #include "ui/strings/grit/ui_strings.h" |
| 16 #include "ui/views/bubble/bubble_delegate.h" | 19 #include "ui/views/bubble/bubble_delegate.h" |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Closing the menu sets |menu_| to nullptr and eventually deletes the object. | 266 // Closing the menu sets |menu_| to nullptr and eventually deletes the object. |
| 264 menu_->Close(); | 267 menu_->Close(); |
| 265 DCHECK(!menu_); | 268 DCHECK(!menu_); |
| 266 } | 269 } |
| 267 | 270 |
| 268 bool TouchSelectionMenuRunnerViews::IsRunning() const { | 271 bool TouchSelectionMenuRunnerViews::IsRunning() const { |
| 269 return menu_ != nullptr; | 272 return menu_ != nullptr; |
| 270 } | 273 } |
| 271 | 274 |
| 272 } // namespace views | 275 } // namespace views |
| OLD | NEW |