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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 232463007: Don't leave aborted URLs in the omnibox unless we're on a new tab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 | « no previous file | chrome/browser/ui/browser.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) 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 #ifndef CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 virtual void TabReplacedAt(TabStripModel* tab_strip_model, 421 virtual void TabReplacedAt(TabStripModel* tab_strip_model,
422 content::WebContents* old_contents, 422 content::WebContents* old_contents,
423 content::WebContents* new_contents, 423 content::WebContents* new_contents,
424 int index) OVERRIDE; 424 int index) OVERRIDE;
425 virtual void TabPinnedStateChanged(content::WebContents* contents, 425 virtual void TabPinnedStateChanged(content::WebContents* contents,
426 int index) OVERRIDE; 426 int index) OVERRIDE;
427 virtual void TabStripEmpty() OVERRIDE; 427 virtual void TabStripEmpty() OVERRIDE;
428 428
429 // Overridden from content::WebContentsDelegate: 429 // Overridden from content::WebContentsDelegate:
430 virtual bool CanOverscrollContent() const OVERRIDE; 430 virtual bool CanOverscrollContent() const OVERRIDE;
431 virtual bool ShouldPreserveAbortedURLs(content::WebContents* source) OVERRIDE;
431 virtual bool PreHandleKeyboardEvent( 432 virtual bool PreHandleKeyboardEvent(
432 content::WebContents* source, 433 content::WebContents* source,
433 const content::NativeWebKeyboardEvent& event, 434 const content::NativeWebKeyboardEvent& event,
434 bool* is_keyboard_shortcut) OVERRIDE; 435 bool* is_keyboard_shortcut) OVERRIDE;
435 virtual void HandleKeyboardEvent( 436 virtual void HandleKeyboardEvent(
436 content::WebContents* source, 437 content::WebContents* source,
437 const content::NativeWebKeyboardEvent& event) OVERRIDE; 438 const content::NativeWebKeyboardEvent& event) OVERRIDE;
438 virtual void OverscrollUpdate(int delta_y) OVERRIDE; 439 virtual void OverscrollUpdate(int delta_y) OVERRIDE;
439 virtual void ShowValidationMessage(content::WebContents* web_contents, 440 virtual void ShowValidationMessage(content::WebContents* web_contents,
440 const gfx::Rect& anchor_in_root_view, 441 const gfx::Rect& anchor_in_root_view,
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 base::WeakPtrFactory<Browser> weak_factory_; 936 base::WeakPtrFactory<Browser> weak_factory_;
936 937
937 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_; 938 scoped_ptr<BrowserContentTranslateDriverObserver> translate_driver_observer_;
938 939
939 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; 940 scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_;
940 941
941 DISALLOW_COPY_AND_ASSIGN(Browser); 942 DISALLOW_COPY_AND_ASSIGN(Browser);
942 }; 943 };
943 944
944 #endif // CHROME_BROWSER_UI_BROWSER_H_ 945 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698