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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/mac/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "chrome/app/vector_icons/vector_icons.h" | 10 #include "chrome/app/vector_icons/vector_icons.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "content/public/browser/render_widget_host.h" | 26 #include "content/public/browser/render_widget_host.h" |
27 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
28 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" | 28 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" |
29 #import "ui/base/cocoa/find_pasteboard.h" | 29 #import "ui/base/cocoa/find_pasteboard.h" |
30 #import "ui/base/cocoa/focus_tracker.h" | 30 #import "ui/base/cocoa/focus_tracker.h" |
31 #import "ui/base/cocoa/nsview_additions.h" | 31 #import "ui/base/cocoa/nsview_additions.h" |
32 #include "ui/base/l10n/l10n_util_mac.h" | 32 #include "ui/base/l10n/l10n_util_mac.h" |
33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
34 #include "ui/gfx/image/image_skia_util_mac.h" | 34 #include "ui/gfx/image/image_skia_util_mac.h" |
35 #include "ui/gfx/paint_vector_icon.h" | 35 #include "ui/gfx/paint_vector_icon.h" |
36 #include "ui/resources/grit/ui_resources.h" | |
37 | 36 |
38 using content::NativeWebKeyboardEvent; | 37 using content::NativeWebKeyboardEvent; |
39 | 38 |
40 const float kFindBarOpenDuration = 0.2; | 39 const float kFindBarOpenDuration = 0.2; |
41 const float kFindBarCloseDuration = 0.15; | 40 const float kFindBarCloseDuration = 0.15; |
42 const float kFindBarMoveDuration = 0.15; | 41 const float kFindBarMoveDuration = 0.15; |
43 const float kRightEdgeOffset = 25; | 42 const float kRightEdgeOffset = 25; |
44 const int kMaxCharacters = 4000; | 43 const int kMaxCharacters = 4000; |
45 | 44 |
46 @interface FindBarCocoaController (PrivateMethods) <NSAnimationDelegate> | 45 @interface FindBarCocoaController (PrivateMethods) <NSAnimationDelegate> |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 662 } |
664 | 663 |
665 - (BrowserWindowController*)browserWindowController { | 664 - (BrowserWindowController*)browserWindowController { |
666 if (!browser_) | 665 if (!browser_) |
667 return nil; | 666 return nil; |
668 return [BrowserWindowController | 667 return [BrowserWindowController |
669 browserWindowControllerForWindow:browser_->window()->GetNativeWindow()]; | 668 browserWindowControllerForWindow:browser_->window()->GetNativeWindow()]; |
670 } | 669 } |
671 | 670 |
672 @end | 671 @end |
OLD | NEW |