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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h

Issue 2848883005: Test FindBar audible alerts. (Closed)
Patch Set: Address Scott's comment. Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/find_bar/find_bar_bridge.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_
6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void RestoreSavedFocus() override; 69 void RestoreSavedFocus() override;
70 bool HasGlobalFindPasteboard() override; 70 bool HasGlobalFindPasteboard() override;
71 void UpdateFindBarForChangedWebContents() override; 71 void UpdateFindBarForChangedWebContents() override;
72 void MoveWindowIfNecessary(const gfx::Rect& selection_rect) override; 72 void MoveWindowIfNecessary(const gfx::Rect& selection_rect) override;
73 73
74 // Methods from FindBarTesting. 74 // Methods from FindBarTesting.
75 bool GetFindBarWindowInfo(gfx::Point* position, bool* fully_visible) override; 75 bool GetFindBarWindowInfo(gfx::Point* position, bool* fully_visible) override;
76 base::string16 GetFindSelectedText() override; 76 base::string16 GetFindSelectedText() override;
77 base::string16 GetMatchCountText() override; 77 base::string16 GetMatchCountText() override;
78 int GetWidth() override; 78 int GetWidth() override;
79 size_t GetAudibleAlertCount() override;
79 80
80 // Used to disable find bar animations when testing. 81 // Used to disable find bar animations when testing.
81 static bool disable_animations_during_testing_; 82 static bool disable_animations_during_testing_;
82 83
83 private: 84 private:
84 // Pointer to the cocoa controller which manages the cocoa view. Is 85 // Pointer to the cocoa controller which manages the cocoa view. Is
85 // never nil. 86 // never nil.
86 FindBarCocoaController* cocoa_controller_; 87 FindBarCocoaController* cocoa_controller_;
87 88
88 // Pointer back to the owning controller. 89 // Pointer back to the owning controller.
89 FindBarController* find_bar_controller_; // weak, owns us 90 FindBarController* find_bar_controller_; // weak, owns us
90 91
92 // Number of audible alerts generated, for testing.
93 size_t audible_alerts_;
94
91 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); 95 DISALLOW_COPY_AND_ASSIGN(FindBarBridge);
92 }; 96 };
93 97
94 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 98 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/find_bar/find_bar_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698