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

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

Issue 11272015: DevTools: “Dock to right” broken after turning a tab into a window of its own. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GTK comments addressed, docs updated. Created 8 years, 1 month 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_VIEWS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // Browser type) and there should be a subsequent re-layout to show it. 501 // Browser type) and there should be a subsequent re-layout to show it.
502 // |contents| can be NULL. 502 // |contents| can be NULL.
503 bool MaybeShowBookmarkBar(TabContents* contents); 503 bool MaybeShowBookmarkBar(TabContents* contents);
504 504
505 // Prepare to show an Info Bar for the specified TabContents. Returns 505 // Prepare to show an Info Bar for the specified TabContents. Returns
506 // true if there is an Info Bar to show and one is supported for this Browser 506 // true if there is an Info Bar to show and one is supported for this Browser
507 // type, and there should be a subsequent re-layout to show it. 507 // type, and there should be a subsequent re-layout to show it.
508 // |contents| can be NULL. 508 // |contents| can be NULL.
509 bool MaybeShowInfoBar(TabContents* contents); 509 bool MaybeShowInfoBar(TabContents* contents);
510 510
511 // Updates devtools window for given contents. This method will show docked
512 // devtools window for inspected |tab_contents| that has docked devtools
513 // and hide it for NULL or not inspected |tab_contents|. It will also make
514 // sure devtools window size and position are restored for given tab.
515 void UpdateDevToolsForContents(TabContents* tab_contents);
516
511 // Shows docked devtools. 517 // Shows docked devtools.
512 void ShowDevToolsContainer(DevToolsDockSide side); 518 void ShowDevToolsContainer();
513 519
514 // Hides docked devtools. 520 // Hides docked devtools.
515 void HideDevToolsContainer(); 521 void HideDevToolsContainer();
516 522
517 // Updates devtools dock side. 523 // Reads split position from the current tab's devtools window and applies
518 void SetDevToolsDockSide(DevToolsDockSide side); 524 // it to the devtools split.
519 525 void UpdateDevToolsSplitPosition();
520 // Updated devtools window for given contents.
521 void UpdateDevToolsForContents(TabContents* tab_contents);
522 526
523 // Updates various optional child Views, e.g. Bookmarks Bar, Info Bar or the 527 // Updates various optional child Views, e.g. Bookmarks Bar, Info Bar or the
524 // Download Shelf in response to a change notification from the specified 528 // Download Shelf in response to a change notification from the specified
525 // |contents|. |contents| can be NULL. In this case, all optional UI will be 529 // |contents|. |contents| can be NULL. In this case, all optional UI will be
526 // removed. 530 // removed.
527 void UpdateUIForContents(TabContents* contents); 531 void UpdateUIForContents(TabContents* contents);
528 532
529 // Updates an optional child View, e.g. Bookmarks Bar, Info Bar, Download 533 // Updates an optional child View, e.g. Bookmarks Bar, Info Bar, Download
530 // Shelf. If |*old_view| differs from new_view, the old_view is removed and 534 // Shelf. If |*old_view| differs from new_view, the old_view is removed and
531 // the new_view is added. This is intended to be used when swapping in/out 535 // the new_view is added. This is intended to be used when swapping in/out
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 // The view that contains devtools window for the selected WebContents. 665 // The view that contains devtools window for the selected WebContents.
662 views::WebView* devtools_container_; 666 views::WebView* devtools_container_;
663 667
664 // The view managing both the contents_container_ and 668 // The view managing both the contents_container_ and
665 // preview_controller_->preview_container_. 669 // preview_controller_->preview_container_.
666 ContentsContainer* contents_; 670 ContentsContainer* contents_;
667 671
668 // Split view containing the contents container and devtools container. 672 // Split view containing the contents container and devtools container.
669 views::SingleSplitView* contents_split_; 673 views::SingleSplitView* contents_split_;
670 674
671 // Side to dock devtools to 675 // Side to dock devtools to.
672 DevToolsDockSide devtools_dock_side_; 676 DevToolsDockSide devtools_dock_side_;
673 677
678 // Docked devtools window instance. NULL when current tab is not inspected
679 // or is inspected with undocked version of DevToolsWindow.
680 DevToolsWindow* devtools_window_;
681
674 // Tracks and stores the last focused view which is not the 682 // Tracks and stores the last focused view which is not the
675 // devtools_container_ or any of its children. Used to restore focus once 683 // devtools_container_ or any of its children. Used to restore focus once
676 // the devtools_container_ is hidden. 684 // the devtools_container_ is hidden.
677 scoped_ptr<views::ExternalFocusTracker> devtools_focus_tracker_; 685 scoped_ptr<views::ExternalFocusTracker> devtools_focus_tracker_;
678 686
679 // The Status information bubble that appears at the bottom of the window. 687 // The Status information bubble that appears at the bottom of the window.
680 scoped_ptr<StatusBubbleViews> status_bubble_; 688 scoped_ptr<StatusBubbleViews> status_bubble_;
681 689
682 // A mapping between accelerators and commands. 690 // A mapping between accelerators and commands.
683 std::map<ui::Accelerator, int> accelerator_table_; 691 std::map<ui::Accelerator, int> accelerator_table_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 scoped_ptr<SearchViewController> search_view_controller_; 740 scoped_ptr<SearchViewController> search_view_controller_;
733 741
734 scoped_ptr<InstantPreviewControllerViews> preview_controller_; 742 scoped_ptr<InstantPreviewControllerViews> preview_controller_;
735 743
736 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; 744 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_;
737 745
738 DISALLOW_COPY_AND_ASSIGN(BrowserView); 746 DISALLOW_COPY_AND_ASSIGN(BrowserView);
739 }; 747 };
740 748
741 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 749 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698