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

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

Issue 1637203002: [MD] Don't use new OTR native-theming when using a custom browser theme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move lifetime comment Created 4 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
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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 bool DrawInfoBarArrows(int* x) const override; 438 bool DrawInfoBarArrows(int* x) const override;
439 439
440 // Overridden from views::View: 440 // Overridden from views::View:
441 const char* GetClassName() const override; 441 const char* GetClassName() const override;
442 void Layout() override; 442 void Layout() override;
443 void PaintChildren(const ui::PaintContext& context) override; 443 void PaintChildren(const ui::PaintContext& context) override;
444 void ViewHierarchyChanged( 444 void ViewHierarchyChanged(
445 const ViewHierarchyChangedDetails& details) override; 445 const ViewHierarchyChangedDetails& details) override;
446 void ChildPreferredSizeChanged(View* child) override; 446 void ChildPreferredSizeChanged(View* child) override;
447 void GetAccessibleState(ui::AXViewState* state) override; 447 void GetAccessibleState(ui::AXViewState* state) override;
448 void OnThemeChanged() override;
448 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 449 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
449 450
450 // Overridden from ui::AcceleratorTarget: 451 // Overridden from ui::AcceleratorTarget:
451 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 452 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
452 453
453 // OmniboxPopupModelObserver overrides 454 // OmniboxPopupModelObserver overrides
454 void OnOmniboxPopupShownOrHidden() override; 455 void OnOmniboxPopupShownOrHidden() override;
455 456
456 // ExclusiveAccessContext overrides 457 // ExclusiveAccessContext overrides
457 Profile* GetProfile() override; 458 Profile* GetProfile() override;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 664
664 // The Status information bubble that appears at the bottom of the window. 665 // The Status information bubble that appears at the bottom of the window.
665 scoped_ptr<StatusBubbleViews> status_bubble_; 666 scoped_ptr<StatusBubbleViews> status_bubble_;
666 667
667 // A mapping between accelerators and commands. 668 // A mapping between accelerators and commands.
668 std::map<ui::Accelerator, int> accelerator_table_; 669 std::map<ui::Accelerator, int> accelerator_table_;
669 670
670 // True if we have already been initialized. 671 // True if we have already been initialized.
671 bool initialized_; 672 bool initialized_;
672 673
674 // True if we're currently handling a theme change (i.e. inside
675 // OnThemeChanged()).
676 bool handling_theme_changed_;
677
673 // True when in ProcessFullscreen(). The flag is used to avoid reentrance and 678 // True when in ProcessFullscreen(). The flag is used to avoid reentrance and
674 // to ignore requests to layout while in ProcessFullscreen() to reduce 679 // to ignore requests to layout while in ProcessFullscreen() to reduce
675 // jankiness. 680 // jankiness.
676 bool in_process_fullscreen_; 681 bool in_process_fullscreen_;
677 682
678 scoped_ptr<ExclusiveAccessBubbleViews> exclusive_access_bubble_; 683 scoped_ptr<ExclusiveAccessBubbleViews> exclusive_access_bubble_;
679 684
680 #if defined(OS_WIN) 685 #if defined(OS_WIN)
681 // This object is used to perform periodic actions in a worker 686 // This object is used to perform periodic actions in a worker
682 // thread. It is currently used to monitor hung plugin windows. 687 // thread. It is currently used to monitor hung plugin windows.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_; 720 scoped_ptr<WebContentsCloseHandler> web_contents_close_handler_;
716 721
717 SigninViewController signin_view_controller_; 722 SigninViewController signin_view_controller_;
718 723
719 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; 724 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_;
720 725
721 DISALLOW_COPY_AND_ASSIGN(BrowserView); 726 DISALLOW_COPY_AND_ASSIGN(BrowserView);
722 }; 727 };
723 728
724 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 729 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698