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

Side by Side Diff: chrome/browser/views/location_bar_view.h

Issue 17428: Issue 358: Can't open a new tab by middle-clicking home button... (Closed) Base URL: http://src.chromium.org/svn/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/go_button.cc ('k') | chrome/browser/views/location_bar_view.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_LOCATION_BAR_VIEW_H__ 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__
6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Overridden from views::View: 112 // Overridden from views::View:
113 virtual bool OverrideAccelerator(const views::Accelerator& accelerator); 113 virtual bool OverrideAccelerator(const views::Accelerator& accelerator);
114 114
115 // Overridden from LocationBar: 115 // Overridden from LocationBar:
116 virtual void ShowFirstRunBubble(); 116 virtual void ShowFirstRunBubble();
117 virtual std::wstring GetInputString() const; 117 virtual std::wstring GetInputString() const;
118 virtual WindowOpenDisposition GetWindowOpenDisposition() const; 118 virtual WindowOpenDisposition GetWindowOpenDisposition() const;
119 virtual PageTransition::Type GetPageTransition() const; 119 virtual PageTransition::Type GetPageTransition() const;
120 virtual void AcceptInput(); 120 virtual void AcceptInput();
121 virtual void AcceptInputWithDisposition(WindowOpenDisposition);
121 virtual void FocusLocation(); 122 virtual void FocusLocation();
122 virtual void FocusSearch(); 123 virtual void FocusSearch();
123 virtual void UpdateFeedIcon(); 124 virtual void UpdateFeedIcon();
124 virtual void SaveStateToContents(TabContents* contents); 125 virtual void SaveStateToContents(TabContents* contents);
125 126
126 static const int kVertMargin; 127 static const int kVertMargin;
127 static const COLORREF kBackgroundColorByLevel[]; 128 static const COLORREF kBackgroundColorByLevel[];
128 129
129 protected: 130 protected:
130 void Focus(); 131 void Focus();
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 442
442 // When true, the location bar view is read only and also is has a slightly 443 // When true, the location bar view is read only and also is has a slightly
443 // different presentation (font size / color). This is used for popups. 444 // different presentation (font size / color). This is used for popups.
444 bool popup_window_mode_; 445 bool popup_window_mode_;
445 446
446 // Used schedule a task for the first run info bubble. 447 // Used schedule a task for the first run info bubble.
447 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; 448 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_;
448 }; 449 };
449 450
450 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ 451 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/browser/views/go_button.cc ('k') | chrome/browser/views/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698