Standardize usage of virtual/override/final specifiers.
commit28401c280ebf802265ef7f387a0ecfe784551e16
authordcheng <dcheng@chromium.org>
Tue, 28 Oct 2014 01:26:19 +0000 (27 18:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 01:26:59 +0000 (28 01:26 +0000)
tree0ddebc66a830257aa8432737410ffd4a3f5f2baf
parent07d12f74065fb3d107bb2abbab6432d492b62c1d
Standardize usage of virtual/override/final specifiers.

The Google C++ style guide states:

  Explicitly annotate overrides of virtual functions or virtual
  destructors with an override or (less frequently) final specifier.
  Older (pre-C++11) code will use the virtual keyword as an inferior
  alternative annotation. For clarity, use exactly one of override,
  final, or virtual when declaring an override.

To better conform to these guidelines, the following constructs have
been rewritten:

- if a base class has a virtual destructor, then:
    virtual ~Foo();                   ->  ~Foo() override;
- virtual void Foo() override;        ->  void Foo() override;
- virtual void Foo() override final;  ->  void Foo() final;

This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.

BUG=417463
R=flackr@chromium.org

Review URL: https://codereview.chromium.org/645513008

Cr-Commit-Position: refs/heads/master@{#301541}
73 files changed:
ash/wm/always_on_top_controller.h
ash/wm/app_list_controller.h
ash/wm/app_list_controller_unittest.cc
ash/wm/ash_focus_rules.h
ash/wm/ash_native_cursor_manager.h
ash/wm/ash_native_cursor_manager_interactive_uitest.cc
ash/wm/ash_native_cursor_manager_unittest.cc
ash/wm/cursor_manager_chromeos.h
ash/wm/default_state.h
ash/wm/default_window_resizer.h
ash/wm/dock/docked_window_layout_manager.cc
ash/wm/dock/docked_window_layout_manager.h
ash/wm/dock/docked_window_layout_manager_unittest.cc
ash/wm/dock/docked_window_resizer.h
ash/wm/dock/docked_window_resizer_unittest.cc
ash/wm/drag_window_resizer.h
ash/wm/event_client_impl.h
ash/wm/gestures/long_press_affordance_handler.cc
ash/wm/gestures/long_press_affordance_handler.h
ash/wm/gestures/overview_gesture_handler_unittest.cc
ash/wm/gestures/tray_gesture_handler.h
ash/wm/immersive_fullscreen_controller.cc
ash/wm/immersive_fullscreen_controller.h
ash/wm/immersive_fullscreen_controller_unittest.cc
ash/wm/lock_layout_manager.h
ash/wm/lock_layout_manager_unittest.cc
ash/wm/lock_state_controller.h
ash/wm/lock_state_controller_unittest.cc
ash/wm/lock_window_state.h
ash/wm/mru_window_tracker.h
ash/wm/mru_window_tracker_unittest.cc
ash/wm/overlay_event_filter.h
ash/wm/partial_screenshot_view.cc
ash/wm/partial_screenshot_view.h
ash/wm/partial_screenshot_view_unittest.cc
ash/wm/power_button_controller.h
ash/wm/resize_handle_window_targeter.h
ash/wm/resize_shadow_and_cursor_unittest.cc
ash/wm/resize_shadow_controller.h
ash/wm/root_window_layout_manager.h
ash/wm/screen_dimmer.h
ash/wm/screen_dimmer_unittest.cc
ash/wm/session_state_animator_impl.cc
ash/wm/session_state_animator_impl.h
ash/wm/stacking_controller.h
ash/wm/stacking_controller_unittest.cc
ash/wm/status_area_layout_manager.h
ash/wm/system_background_controller.h
ash/wm/system_gesture_event_filter.h
ash/wm/system_gesture_event_filter_unittest.cc
ash/wm/system_modal_container_event_filter.h
ash/wm/system_modal_container_layout_manager.h
ash/wm/system_modal_container_layout_manager_unittest.cc
ash/wm/toplevel_window_event_handler.cc
ash/wm/toplevel_window_event_handler.h
ash/wm/toplevel_window_event_handler_unittest.cc
ash/wm/video_detector.h
ash/wm/video_detector_unittest.cc
ash/wm/virtual_keyboard_container_layout_manager.h
ash/wm/window_animations.cc
ash/wm/window_animations_unittest.cc
ash/wm/window_cycle_controller.cc
ash/wm/window_cycle_controller_unittest.cc
ash/wm/window_cycle_list.cc
ash/wm/window_cycle_list.h
ash/wm/window_manager_unittest.cc
ash/wm/window_modality_controller_unittest.cc
ash/wm/window_positioner_unittest.cc
ash/wm/window_state.cc
ash/wm/window_state.h
ash/wm/window_state_unittest.cc
ash/wm/wm_event.h
ash/wm/workspace_controller_unittest.cc