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

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

Issue 9296040: mac: Always do history swiping on the NTP on lion devices with touchpad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable swipes to the left as well Created 8 years, 10 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
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // Assorted browser commands //////////////////////////////////////////////// 507 // Assorted browser commands ////////////////////////////////////////////////
508 508
509 // NOTE: Within each of the following sections, the IDs are ordered roughly by 509 // NOTE: Within each of the following sections, the IDs are ordered roughly by
510 // how they appear in the GUI/menus (left to right, top to bottom, etc.). 510 // how they appear in the GUI/menus (left to right, top to bottom, etc.).
511 511
512 // Navigation commands 512 // Navigation commands
513 bool CanGoBack() const; 513 bool CanGoBack() const;
514 void GoBack(WindowOpenDisposition disposition); 514 void GoBack(WindowOpenDisposition disposition);
515 bool CanGoForward() const; 515 bool CanGoForward() const;
516 void GoForward(WindowOpenDisposition disposition); 516 void GoForward(WindowOpenDisposition disposition);
517 bool IsOnNtp() const;
Robert Sesek 2012/01/30 17:13:18 Any reason this needs to be defined for all Browse
Nico 2012/01/30 17:59:22 I didn't realize GetSelectedWebContents() was publ
517 void Reload(WindowOpenDisposition disposition); 518 void Reload(WindowOpenDisposition disposition);
518 void ReloadIgnoringCache(WindowOpenDisposition disposition); // Shift-reload. 519 void ReloadIgnoringCache(WindowOpenDisposition disposition); // Shift-reload.
519 void Home(WindowOpenDisposition disposition); 520 void Home(WindowOpenDisposition disposition);
520 void OpenCurrentURL(); 521 void OpenCurrentURL();
521 void Stop(); 522 void Stop();
522 // Window management commands 523 // Window management commands
523 void NewWindow(); 524 void NewWindow();
524 void NewIncognitoWindow(); 525 void NewIncognitoWindow();
525 void CloseWindow(); 526 void CloseWindow();
526 void NewTab(); 527 void NewTab();
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 1440
1440 scoped_refptr<FullscreenController> fullscreen_controller_; 1441 scoped_refptr<FullscreenController> fullscreen_controller_;
1441 1442
1442 // True if the browser window has been shown at least once. 1443 // True if the browser window has been shown at least once.
1443 bool window_has_shown_; 1444 bool window_has_shown_;
1444 1445
1445 DISALLOW_COPY_AND_ASSIGN(Browser); 1446 DISALLOW_COPY_AND_ASSIGN(Browser);
1446 }; 1447 };
1447 1448
1448 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1449 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698