OLD | NEW |
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 "base/debug/stack_trace.h" | 7 #include "base/debug/stack_trace.h" |
8 #include "chrome/browser/ui/views/frame/browser_frame.h" | 8 #include "chrome/browser/ui/views/frame/browser_frame.h" |
9 #include "chrome/browser/ui/views/frame/browser_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_view.h" |
10 #include "grit/generated_resources.h" // Accessibility names | 10 #include "grit/generated_resources.h" // Accessibility names |
11 #include "grit/theme_resources.h" | 11 #include "grit/theme_resources.h" |
12 #include "grit/theme_resources_standard.h" | |
13 #include "grit/ui_resources.h" | 12 #include "grit/ui_resources.h" |
14 #include "grit/ui_resources_standard.h" | |
15 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
16 #include "ui/base/animation/slide_animation.h" | 14 #include "ui/base/animation/slide_animation.h" |
17 #include "ui/base/hit_test.h" | 15 #include "ui/base/hit_test.h" |
18 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/base/theme_provider.h" | 18 #include "ui/base/theme_provider.h" |
21 #include "ui/compositor/layer.h" | 19 #include "ui/compositor/layer.h" |
22 #include "ui/compositor/scoped_layer_animation_settings.h" | 20 #include "ui/compositor/scoped_layer_animation_settings.h" |
23 #include "ui/gfx/canvas.h" | 21 #include "ui/gfx/canvas.h" |
24 #include "ui/gfx/image/image.h" | 22 #include "ui/gfx/image/image.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 bool AppNonClientFrameViewAura::IsShowingControls() const { | 324 bool AppNonClientFrameViewAura::IsShowingControls() const { |
327 return control_widget_ && control_widget_->IsVisible(); | 325 return control_widget_ && control_widget_->IsVisible(); |
328 } | 326 } |
329 | 327 |
330 void AppNonClientFrameViewAura::Restore() { | 328 void AppNonClientFrameViewAura::Restore() { |
331 if (control_widget_) | 329 if (control_widget_) |
332 control_widget_->Close(); | 330 control_widget_->Close(); |
333 mouse_watcher_.Stop(); | 331 mouse_watcher_.Stop(); |
334 frame()->Restore(); | 332 frame()->Restore(); |
335 } | 333 } |
OLD | NEW |