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

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

Issue 1141005: Revert r42156, r42157, r42160. Allow dynamic switching in and out of sidetabs... (Closed) Base URL: svn://chrome-svn/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 UseVerticalTabs() const; 154 bool UsingSideTabs() 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();
326 325
327 // Overridden from BrowserWindowTesting: 326 // Overridden from BrowserWindowTesting:
328 virtual BookmarkBarView* GetBookmarkBarView() const; 327 virtual BookmarkBarView* GetBookmarkBarView() const;
329 virtual LocationBarView* GetLocationBarView() const; 328 virtual LocationBarView* GetLocationBarView() const;
330 virtual views::View* GetTabContentsContainerView() const; 329 virtual views::View* GetTabContentsContainerView() const;
331 virtual ToolbarView* GetToolbarView() const; 330 virtual ToolbarView* GetToolbarView() const;
332 331
333 // Overridden from NotificationObserver: 332 // Overridden from NotificationObserver:
334 virtual void Observe(NotificationType type, 333 virtual void Observe(NotificationType type,
335 const NotificationSource& source, 334 const NotificationSource& source,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 virtual void ChildPreferredSizeChanged(View* child); 390 virtual void ChildPreferredSizeChanged(View* child);
392 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); 391 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
393 virtual bool GetAccessibleName(std::wstring* name); 392 virtual bool GetAccessibleName(std::wstring* name);
394 virtual void SetAccessibleName(const std::wstring& name); 393 virtual void SetAccessibleName(const std::wstring& name);
395 394
396 // Factory Methods. 395 // Factory Methods.
397 // Returns a new LayoutManager for this browser view. A subclass may 396 // Returns a new LayoutManager for this browser view. A subclass may
398 // override to implemnet different layout pocily. 397 // override to implemnet different layout pocily.
399 virtual views::LayoutManager* CreateLayoutManager() const; 398 virtual views::LayoutManager* CreateLayoutManager() const;
400 399
401 // Initializes a new TabStrip for the browser view. This can be performed 400 // Returns a new TabStrip for the browser view. A subclass may
402 // multiple times over the life of the browser, and is run when the display 401 // override to return a different TabStrip implementation.
403 // mode for the tabstrip changes from horizontal to vertical. 402 virtual BaseTabStrip* CreateTabStrip(TabStripModel* tab_strip_model);
404 void InitTabStrip(TabStripModel* tab_strip_model);
405 403
406 // Browser window related initializations. 404 // Browser window related initializations.
407 virtual void Init(); 405 virtual void Init();
408 406
409 private: 407 private:
410 friend class BrowserViewLayout; 408 friend class BrowserViewLayout;
411 409
412 #if defined(OS_WIN) 410 #if defined(OS_WIN)
413 // Creates the system menu. 411 // Creates the system menu.
414 void InitSystemMenu(); 412 void InitSystemMenu();
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 577
580 // Last focused view that issued a tab traversal. 578 // Last focused view that issued a tab traversal.
581 int last_focused_view_storage_id_; 579 int last_focused_view_storage_id_;
582 580
583 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 581 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
584 582
585 DISALLOW_COPY_AND_ASSIGN(BrowserView); 583 DISALLOW_COPY_AND_ASSIGN(BrowserView);
586 }; 584 };
587 585
588 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 586 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_frame_win.cc ('k') | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698