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

Side by Side Diff: ash/wm/caption_buttons/frame_maximize_button.cc

Issue 23498031: Move code related to the window controls to ash/wm/caption_buttons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 months 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
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 "ash/wm/workspace/frame_maximize_button.h" 5 #include "ash/wm/caption_buttons/frame_maximize_button.h"
6 6
7 #include "ash/launcher/launcher.h" 7 #include "ash/launcher/launcher.h"
8 #include "ash/screen_ash.h" 8 #include "ash/screen_ash.h"
9 #include "ash/shelf/shelf_widget.h" 9 #include "ash/shelf/shelf_widget.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/shell_delegate.h" 11 #include "ash/shell_delegate.h"
12 #include "ash/touch/touch_uma.h" 12 #include "ash/touch/touch_uma.h"
13 #include "ash/wm/maximize_bubble_controller.h" 13 #include "ash/wm/caption_buttons/maximize_bubble_controller.h"
14 #include "ash/wm/property_util.h" 14 #include "ash/wm/property_util.h"
15 #include "ash/wm/window_animations.h" 15 #include "ash/wm/window_animations.h"
16 #include "ash/wm/window_settings.h" 16 #include "ash/wm/window_settings.h"
17 #include "ash/wm/workspace/phantom_window_controller.h" 17 #include "ash/wm/workspace/phantom_window_controller.h"
18 #include "ash/wm/workspace/snap_sizer.h" 18 #include "ash/wm/workspace/snap_sizer.h"
19 #include "grit/ash_strings.h" 19 #include "grit/ash_strings.h"
20 #include "ui/aura/client/aura_constants.h" 20 #include "ui/aura/client/aura_constants.h"
21 #include "ui/aura/window.h" 21 #include "ui/aura/window.h"
22 #include "ui/base/events/event.h" 22 #include "ui/base/events/event.h"
23 #include "ui/base/events/event_handler.h" 23 #include "ui/base/events/event_handler.h"
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 return FRAME_STATE_SNAP_LEFT; 610 return FRAME_STATE_SNAP_LEFT;
611 if (bounds.right() == screen.right()) 611 if (bounds.right() == screen.right())
612 return FRAME_STATE_SNAP_RIGHT; 612 return FRAME_STATE_SNAP_RIGHT;
613 // If we come here, it is likely caused by the fact that the 613 // If we come here, it is likely caused by the fact that the
614 // "VerticalResizeDoubleClick" stored a restore rectangle. In that case 614 // "VerticalResizeDoubleClick" stored a restore rectangle. In that case
615 // we allow all maximize operations (and keep the restore rectangle). 615 // we allow all maximize operations (and keep the restore rectangle).
616 return FRAME_STATE_NONE; 616 return FRAME_STATE_NONE;
617 } 617 }
618 618
619 } // namespace ash 619 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/caption_buttons/frame_maximize_button.h ('k') | ash/wm/caption_buttons/maximize_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698