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

Side by Side Diff: chrome/test/test_location_bar.h

Issue 53020: Redone http://codereview.chromium.org/42571 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
« no previous file with comments | « chrome/browser/views/toolbar_view.cc ('k') | chrome/views/controls/button/custom_button.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TEST_TEST_LOCATION_BAR_H_ 5 #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_
6 #define CHROME_TEST_TEST_LOCATION_BAR_H_ 6 #define CHROME_TEST_TEST_LOCATION_BAR_H_
7 7
8 #include "chrome/browser/location_bar.h" 8 #include "chrome/browser/location_bar.h"
9 #include "chrome/common/page_transition_types.h" 9 #include "chrome/common/page_transition_types.h"
10 #include "webkit/glue/window_open_disposition.h" 10 #include "webkit/glue/window_open_disposition.h"
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 // Overridden from LocationBar: 29 // Overridden from LocationBar:
30 virtual void ShowFirstRunBubble() {} 30 virtual void ShowFirstRunBubble() {}
31 virtual std::wstring GetInputString() const { return input_string_; } 31 virtual std::wstring GetInputString() const { return input_string_; }
32 virtual WindowOpenDisposition GetWindowOpenDisposition() const { 32 virtual WindowOpenDisposition GetWindowOpenDisposition() const {
33 return disposition_; 33 return disposition_;
34 } 34 }
35 virtual PageTransition::Type GetPageTransition() const { return transition_; } 35 virtual PageTransition::Type GetPageTransition() const { return transition_; }
36 virtual void AcceptInput() {} 36 virtual void AcceptInput() {}
37 virtual void AcceptInputWithDisposition(WindowOpenDisposition) {};
37 virtual void FocusLocation() {} 38 virtual void FocusLocation() {}
38 virtual void FocusSearch() {} 39 virtual void FocusSearch() {}
39 virtual void UpdateFeedIcon() {} 40 virtual void UpdateFeedIcon() {}
40 virtual void SaveStateToContents(TabContents* contents) {} 41 virtual void SaveStateToContents(TabContents* contents) {}
41 42
42 private: 43 private:
43 44
44 // Test-supplied values that will be returned through the LocationBar 45 // Test-supplied values that will be returned through the LocationBar
45 // interface. 46 // interface.
46 std::wstring input_string_; 47 std::wstring input_string_;
47 WindowOpenDisposition disposition_; 48 WindowOpenDisposition disposition_;
48 PageTransition::Type transition_; 49 PageTransition::Type transition_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); 51 DISALLOW_COPY_AND_ASSIGN(TestLocationBar);
51 }; 52 };
52 53
53 54
54 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_ 55 #endif // #ifndef CHROME_TEST_TEST_LOCATION_BAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/toolbar_view.cc ('k') | chrome/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698