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

Side by Side Diff: chrome/browser/ui/views/frame/app_non_client_frame_view_aura.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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 "chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h" 5 #include "chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h"
6 6
7 #include "ash/wm/workspace/frame_maximize_button.h" 7 #include "ash/wm/workspace/frame_maximize_button.h"
8 #include "base/debug/stack_trace.h" 8 #include "base/debug/stack_trace.h"
9 #include "chrome/browser/ui/views/frame/browser_frame.h" 9 #include "chrome/browser/ui/views/frame/browser_frame.h"
10 #include "chrome/browser/ui/views/frame/browser_view.h" 10 #include "chrome/browser/ui/views/frame/browser_view.h"
11 #include "grit/generated_resources.h" // Accessibility names 11 #include "grit/generated_resources.h" // Accessibility names
12 #include "grit/theme_resources.h"
13 #include "grit/theme_resources_standard.h"
12 #include "grit/ui_resources.h" 14 #include "grit/ui_resources.h"
13 #include "grit/ui_resources_standard.h" 15 #include "grit/ui_resources_standard.h"
14 #include "grit/theme_resources.h"
15 #include "grit/theme_resources_standard.h"
16 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
17 #include "ui/base/animation/slide_animation.h" 17 #include "ui/base/animation/slide_animation.h"
18 #include "ui/base/hit_test.h"
18 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/base/hit_test.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/base/theme_provider.h" 21 #include "ui/base/theme_provider.h"
22 #include "ui/compositor/layer.h"
23 #include "ui/compositor/scoped_layer_animation_settings.h"
22 #include "ui/gfx/canvas.h" 24 #include "ui/gfx/canvas.h"
23 #include "ui/gfx/compositor/layer.h"
24 #include "ui/gfx/compositor/scoped_layer_animation_settings.h"
25 #include "ui/gfx/image/image.h" 25 #include "ui/gfx/image/image.h"
26 #include "ui/gfx/point.h" 26 #include "ui/gfx/point.h"
27 #include "ui/gfx/rect.h" 27 #include "ui/gfx/rect.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "ui/views/controls/button/image_button.h" 29 #include "ui/views/controls/button/image_button.h"
30 #include "ui/views/widget/widget.h" 30 #include "ui/views/widget/widget.h"
31 #include "ui/views/window/non_client_view.h" 31 #include "ui/views/window/non_client_view.h"
32 32
33 namespace { 33 namespace {
34 // The number of pixels to use as a hover zone at the top of the screen. 34 // The number of pixels to use as a hover zone at the top of the screen.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 bool AppNonClientFrameViewAura::IsShowingControls() const { 304 bool AppNonClientFrameViewAura::IsShowingControls() const {
305 return control_widget_ && control_widget_->IsVisible(); 305 return control_widget_ && control_widget_->IsVisible();
306 } 306 }
307 307
308 void AppNonClientFrameViewAura::Restore() { 308 void AppNonClientFrameViewAura::Restore() {
309 if (control_widget_) 309 if (control_widget_)
310 control_widget_->Close(); 310 control_widget_->Close();
311 mouse_watcher_.Stop(); 311 mouse_watcher_.Stop();
312 frame()->Restore(); 312 frame()->Restore();
313 } 313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698