Skip to content

Commit

Permalink
Moves accelerator code using common types to ash/common
Browse files Browse the repository at this point in the history
BUG=612331
TEST=none
R=jamescook@chromium.org
TBR=jamescook@chromium.org

Review-Url: https://codereview.chromium.org/2166793005
Cr-Commit-Position: refs/heads/master@{#406877}
  • Loading branch information
sky authored and Commit bot committed Jul 21, 2016
1 parent e75bb44 commit de61f98
Show file tree
Hide file tree
Showing 45 changed files with 84 additions and 84 deletions.
2 changes: 1 addition & 1 deletion ash/accelerators/accelerator_commands_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_commands.h"
#include "ash/common/accelerators/accelerator_commands.h"

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion ash/accelerators/accelerator_controller_delegate_aura.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <utility>

#include "ash/accelerators/accelerator_commands_aura.h"
#include "ash/accelerators/debug_commands.h"
#include "ash/common/accelerators/debug_commands.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/accessibility_types.h"
#include "ash/common/ash_switches.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/accelerators/accelerator_controller_delegate_aura.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <memory>

#include "ash/accelerators/accelerator_controller_delegate.h"
#include "ash/common/accelerators/accelerator_controller_delegate.h"
#include "base/macros.h"

namespace ash {
Expand Down
6 changes: 3 additions & 3 deletions ash/accelerators/accelerator_controller_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"

#include "ash/accelerators/accelerator_table.h"
#include "ash/aura/wm_window_aura.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/accessibility_types.h"
#include "ash/common/ime_control_delegate.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/brightness_control_delegate.h"
Expand All @@ -20,7 +21,6 @@
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm_shell.h"
#include "ash/display/display_manager.h"
#include "ash/ime_control_delegate.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/display_manager_test_api.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/accelerators/accelerator_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "ash/accelerators/accelerator_delegate.h"

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
#include "ash/shell.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/accelerators/accelerator_filter_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

#include <memory>

#include "ash/accelerators/accelerator_controller.h"
#include "ash/accelerators/accelerator_delegate.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_shell.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"

#include "ash/common/shell_observer.h"
#include "ash/common/system/chromeos/network/network_observer.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/accelerators/focus_manager_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "ash/accelerators/focus_manager_factory.h"

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/shell.h"
#include "ui/views/focus/focus_manager.h"

Expand Down
24 changes: 12 additions & 12 deletions ash/ash.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,12 @@
'chromium_code': 1,
# These files lists are shared with the GN build.
'ash_sources': [
'accelerators/accelerator_commands.cc',
'accelerators/accelerator_commands.h',
'accelerators/accelerator_commands_aura.cc',
'accelerators/accelerator_commands_aura.h',
'accelerators/accelerator_controller.cc',
'accelerators/accelerator_controller.h',
'accelerators/accelerator_controller_delegate.h',
'accelerators/accelerator_controller_delegate_aura.cc',
'accelerators/accelerator_controller_delegate_aura.h',
'accelerators/accelerator_delegate.cc',
'accelerators/accelerator_delegate.h',
'accelerators/accelerator_table.cc',
'accelerators/accelerator_table.h',
'accelerators/debug_commands.cc',
'accelerators/debug_commands.h',
'accelerators/exit_warning_handler.cc',
'accelerators/exit_warning_handler.h',
'accelerators/focus_manager_factory.cc',
'accelerators/focus_manager_factory.h',
'accelerators/key_hold_detector.cc',
Expand Down Expand Up @@ -55,6 +44,17 @@
'autoclick/autoclick_controller.h',
'cancel_mode.cc',
'cancel_mode.h',
'common/accelerators/accelerator_commands.cc',
'common/accelerators/accelerator_commands.h',
'common/accelerators/accelerator_controller.cc',
'common/accelerators/accelerator_controller.h',
'common/accelerators/accelerator_controller_delegate.h',
'common/accelerators/accelerator_table.cc',
'common/accelerators/accelerator_table.h',
'common/accelerators/debug_commands.cc',
'common/accelerators/debug_commands.h',
'common/accelerators/exit_warning_handler.cc',
'common/accelerators/exit_warning_handler.h',
'common/accessibility_delegate.h',
'common/accessibility_types.h',
'common/ash_constants.cc',
Expand Down Expand Up @@ -899,12 +899,12 @@
'accelerators/accelerator_commands_unittest.cc',
'accelerators/accelerator_controller_unittest.cc',
'accelerators/accelerator_filter_unittest.cc',
'accelerators/accelerator_table_unittest.cc',
'accelerators/magnifier_key_scroller_unittest.cc',
'accelerators/spoken_feedback_toggler_unittest.cc',
'app_list/app_list_presenter_delegate_unittest.cc',
'ash_touch_exploration_manager_chromeos_unittest.cc',
'autoclick/autoclick_unittest.cc',
'common/accelerators/accelerator_table_unittest.cc',
'common/display/display_info_unittest.cc',
'common/material_design/material_design_controller_unittest.cc',
'common/popup_message_unittest.cc',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_commands.h"
#include "ash/common/accelerators/accelerator_commands.h"

#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/window_state.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
#define ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
#ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_COMMANDS_H_
#define ASH_COMMON_ACCELERATORS_ACCELERATOR_COMMANDS_H_

#include "ash/ash_export.h"

Expand All @@ -28,4 +28,4 @@ ASH_EXPORT void ToggleFullscreen();
} // namespace accelerators
} // namespace ash

#endif // ASH_ACCELERATORS_ACCELERATOR_COMMANDS_H_
#endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_COMMANDS_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"

#include "ash/accelerators/accelerator_commands.h"
#include "ash/accelerators/accelerator_controller_delegate.h"
#include "ash/accelerators/debug_commands.h"
#include "ash/common/accelerators/accelerator_commands.h"
#include "ash/common/accelerators/accelerator_controller_delegate.h"
#include "ash/common/accelerators/debug_commands.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/accessibility_types.h"
#include "ash/common/focus_cycler.h"
#include "ash/common/ime_control_delegate.h"
#include "ash/common/media_delegate.h"
#include "ash/common/multi_profile_uma.h"
#include "ash/common/session/session_state_delegate.h"
Expand All @@ -27,7 +28,6 @@
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/ime_control_delegate.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "ui/base/accelerators/accelerator.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
#define ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
#ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
#define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_H_

#include <stddef.h>

#include <map>
#include <memory>
#include <set>

#include "ash/accelerators/accelerator_table.h"
#include "ash/accelerators/exit_warning_handler.h"
#include "ash/ash_export.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "ash/common/accelerators/exit_warning_handler.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
Expand Down Expand Up @@ -200,4 +200,4 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {

} // namespace ash

#endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
#endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
#define ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
#ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
#define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_

#include "ash/accelerators/accelerator_table.h"
#include "ash/ash_export.h"
#include "ash/common/accelerators/accelerator_table.h"

namespace ui {
class Accelerator;
Expand Down Expand Up @@ -47,4 +47,4 @@ class ASH_EXPORT AcceleratorControllerDelegate {

} // namespace ash

#endif // ASH_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
#endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/accelerator_table.h"
#include "ash/common/accelerators/accelerator_table.h"

#include "ash/common/strings/grit/ash_strings.h"
#include "base/macros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
#define ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
#ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_
#define ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_

#include <stddef.h>

Expand Down Expand Up @@ -258,4 +258,4 @@ ASH_EXPORT extern const size_t kActionsKeepingMenuOpenLength;

} // namespace ash

#endif // ASH_ACCELERATORS_ACCELERATOR_TABLE_H_
#endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_TABLE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <set>

#include "ash/accelerators/accelerator_table.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "base/strings/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/debug_commands.h"
#include "ash/common/accelerators/debug_commands.h"

#include "ash/accelerators/accelerator_commands.h"
#include "ash/common/accelerators/accelerator_commands.h"
#include "ash/common/ash_switches.h"
#include "ash/common/shell_delegate.h"
#include "ash/common/system/toast/toast_data.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_DEBUG_COMMANDS_H_
#define ASH_ACCELERATORS_DEBUG_COMMANDS_H_
#ifndef ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_
#define ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_

#include "ash/accelerators/accelerator_table.h"
#include "ash/ash_export.h"
#include "ash/common/accelerators/accelerator_table.h"

// This file contains implementations of commands that are used only when
// debugging.
Expand All @@ -30,4 +30,4 @@ ASH_EXPORT void PerformDebugActionIfEnabled(AcceleratorAction action);
} // namespace debug
} // namespace ash

#endif // ASH_ACCELERATORS_DEBUG_COMMANDS_H_
#endif // ASH_COMMON_ACCELERATORS_DEBUG_COMMANDS_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/accelerators/exit_warning_handler.h"
#include "ash/common/accelerators/exit_warning_handler.h"

#include "ash/common/shell_delegate.h"
#include "ash/common/shell_window_ids.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_
#define ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_
#ifndef ASH_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_
#define ASH_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_

#include <memory>

Expand Down Expand Up @@ -81,4 +81,4 @@ class ASH_EXPORT ExitWarningHandler {

} // namespace ash

#endif // ASH_ACCELERATORS_EXIT_WARNING_HANDLER_H_
#endif // ASH_COMMON_ACCELERATORS_EXIT_WARNING_HANDLER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_IME_CONTROL_DELEGATE_H_
#define ASH_IME_CONTROL_DELEGATE_H_
#ifndef ASH_COMMON_IME_CONTROL_DELEGATE_H_
#define ASH_COMMON_IME_CONTROL_DELEGATE_H_

namespace ui {
class Accelerator;
Expand Down Expand Up @@ -37,4 +37,4 @@ class ImeControlDelegate {

} // namespace ash

#endif // ASH_IME_CONTROL_DELEGATE_H_
#endif // ASH_COMMON_IME_CONTROL_DELEGATE_H_
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <algorithm>

#include "ash/accelerators/accelerator_table.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "ash/content/keyboard_overlay/keyboard_overlay_delegate.h"
#include "ash/content/shell_content_state.h"
#include "ash/test/ash_test_base.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/magnifier/magnification_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <memory>
#include <utility>

#include "ash/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/ash_switches.h"
#include "ash/common/system/tray/system_tray_delegate.h"
Expand Down
2 changes: 1 addition & 1 deletion ash/shelf/shelf_layout_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <string>
#include <vector>

#include "ash/accelerators/accelerator_commands.h"
#include "ash/aura/wm_window_aura.h"
#include "ash/common/accelerators/accelerator_commands.h"
#include "ash/common/ash_switches.h"
#include "ash/common/material_design/material_design_controller.h"
#include "ash/common/session/session_state_delegate.h"
Expand Down
4 changes: 2 additions & 2 deletions ash/shelf/shelf_layout_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#include "ash/shelf/shelf_layout_manager.h"

#include "ash/accelerators/accelerator_controller.h"
#include "ash/accelerators/accelerator_table.h"
#include "ash/aura/wm_window_aura.h"
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_table.h"
#include "ash/common/ash_switches.h"
#include "ash/common/focus_cycler.h"
#include "ash/common/material_design/material_design_controller.h"
Expand Down
Loading

0 comments on commit de61f98

Please sign in to comment.