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

Side by Side Diff: chrome/browser/views/frame/browser_view.h

Issue 1001003: Allow dynamic switching in and out of sidetabs mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Accessor for the TabStrip. 144 // Accessor for the TabStrip.
145 BaseTabStrip* tabstrip() const { return tabstrip_; } 145 BaseTabStrip* tabstrip() const { return tabstrip_; }
146 146
147 // Accessor for the ExtensionShelf. 147 // Accessor for the ExtensionShelf.
148 ExtensionShelf* extension_shelf() const { return extension_shelf_; } 148 ExtensionShelf* extension_shelf() const { return extension_shelf_; }
149 149
150 // Returns true if various window components are visible. 150 // Returns true if various window components are visible.
151 bool IsTabStripVisible() const; 151 bool IsTabStripVisible() const;
152 152
153 // Returns true if the vertical tabstrip is in use. 153 // Returns true if the vertical tabstrip is in use.
154 bool UsingSideTabs() const; 154 bool UseVerticalTabs() const;
155 155
156 // Returns true if the profile associated with this Browser window is 156 // Returns true if the profile associated with this Browser window is
157 // off the record. 157 // off the record.
158 bool IsOffTheRecord() const; 158 bool IsOffTheRecord() const;
159 159
160 // Returns true if the non-client view should render the Off-The-Record 160 // Returns true if the non-client view should render the Off-The-Record
161 // avatar icon if the window is off the record. 161 // avatar icon if the window is off the record.
162 bool ShouldShowOffTheRecordAvatar() const; 162 bool ShouldShowOffTheRecordAvatar() const;
163 163
164 // Handle the specified |accelerator| being pressed. 164 // Handle the specified |accelerator| being pressed.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 315 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
316 bool* is_keyboard_shortcut); 316 bool* is_keyboard_shortcut);
317 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 317 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
318 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); 318 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents);
319 #if defined(OS_CHROMEOS) 319 #if defined(OS_CHROMEOS)
320 virtual void ToggleCompactNavigationBar(); 320 virtual void ToggleCompactNavigationBar();
321 #endif // defined(OS_CHROMEOS) 321 #endif // defined(OS_CHROMEOS)
322 virtual void Cut(); 322 virtual void Cut();
323 virtual void Copy(); 323 virtual void Copy();
324 virtual void Paste(); 324 virtual void Paste();
325 virtual void ToggleTabStripMode();
325 326
326 // Overridden from BrowserWindowTesting: 327 // Overridden from BrowserWindowTesting:
327 virtual BookmarkBarView* GetBookmarkBarView() const; 328 virtual BookmarkBarView* GetBookmarkBarView() const;
328 virtual LocationBarView* GetLocationBarView() const; 329 virtual LocationBarView* GetLocationBarView() const;
329 virtual views::View* GetTabContentsContainerView() const; 330 virtual views::View* GetTabContentsContainerView() const;
330 virtual ToolbarView* GetToolbarView() const; 331 virtual ToolbarView* GetToolbarView() const;
331 332
332 // Overridden from NotificationObserver: 333 // Overridden from NotificationObserver:
333 virtual void Observe(NotificationType type, 334 virtual void Observe(NotificationType type,
334 const NotificationSource& source, 335 const NotificationSource& source,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 virtual void ChildPreferredSizeChanged(View* child); 391 virtual void ChildPreferredSizeChanged(View* child);
391 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); 392 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
392 virtual bool GetAccessibleName(std::wstring* name); 393 virtual bool GetAccessibleName(std::wstring* name);
393 virtual void SetAccessibleName(const std::wstring& name); 394 virtual void SetAccessibleName(const std::wstring& name);
394 395
395 // Factory Methods. 396 // Factory Methods.
396 // Returns a new LayoutManager for this browser view. A subclass may 397 // Returns a new LayoutManager for this browser view. A subclass may
397 // override to implemnet different layout pocily. 398 // override to implemnet different layout pocily.
398 virtual views::LayoutManager* CreateLayoutManager() const; 399 virtual views::LayoutManager* CreateLayoutManager() const;
399 400
400 // Returns a new TabStrip for the browser view. A subclass may 401 // Initializes a new TabStrip for the browser view. This can be performed
401 // override to return a different TabStrip implementation. 402 // multiple times over the life of the browser, and is run when the display
402 virtual BaseTabStrip* CreateTabStrip(TabStripModel* tab_strip_model); 403 // mode for the tabstrip changes from horizontal to vertical.
404 void InitTabStrip(TabStripModel* tab_strip_model);
403 405
404 // Browser window related initializations. 406 // Browser window related initializations.
405 virtual void Init(); 407 virtual void Init();
406 408
407 private: 409 private:
408 friend class BrowserViewLayout; 410 friend class BrowserViewLayout;
409 411
410 #if defined(OS_WIN) 412 #if defined(OS_WIN)
411 // Creates the system menu. 413 // Creates the system menu.
412 void InitSystemMenu(); 414 void InitSystemMenu();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 579
578 // Last focused view that issued a tab traversal. 580 // Last focused view that issued a tab traversal.
579 int last_focused_view_storage_id_; 581 int last_focused_view_storage_id_;
580 582
581 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 583 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
582 584
583 DISALLOW_COPY_AND_ASSIGN(BrowserView); 585 DISALLOW_COPY_AND_ASSIGN(BrowserView);
584 }; 586 };
585 587
586 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 588 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698