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

Side by Side Diff: chrome/browser/ui/views/extensions/shell_window_views.cc

Issue 10993087: Handle titlebar text updates properly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Odd - build machine failed to update patch (which I updated successfully) Re-uploading Created 8 years, 2 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 #include "chrome/browser/ui/views/extensions/shell_window_views.h" 5 #include "chrome/browser/ui/views/extensions/shell_window_views.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/extensions/extension_host.h" 8 #include "chrome/browser/extensions/extension_host.h"
9 #include "chrome/browser/favicon/favicon_tab_helper.h" 9 #include "chrome/browser/favicon/favicon_tab_helper.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // views::NonClientFrameView implementation. 68 // views::NonClientFrameView implementation.
69 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; 69 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
70 virtual gfx::Rect GetWindowBoundsForClientBounds( 70 virtual gfx::Rect GetWindowBoundsForClientBounds(
71 const gfx::Rect& client_bounds) const OVERRIDE; 71 const gfx::Rect& client_bounds) const OVERRIDE;
72 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 72 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
73 virtual void GetWindowMask(const gfx::Size& size, 73 virtual void GetWindowMask(const gfx::Size& size,
74 gfx::Path* window_mask) OVERRIDE; 74 gfx::Path* window_mask) OVERRIDE;
75 virtual void ResetWindowControls() OVERRIDE {} 75 virtual void ResetWindowControls() OVERRIDE {}
76 virtual void UpdateWindowIcon() OVERRIDE {} 76 virtual void UpdateWindowIcon() OVERRIDE {}
77 virtual void UpdateWindowTitle() OVERRIDE {}
77 78
78 // views::View implementation. 79 // views::View implementation.
79 virtual gfx::Size GetPreferredSize() OVERRIDE; 80 virtual gfx::Size GetPreferredSize() OVERRIDE;
80 virtual void Layout() OVERRIDE; 81 virtual void Layout() OVERRIDE;
81 virtual std::string GetClassName() const OVERRIDE; 82 virtual std::string GetClassName() const OVERRIDE;
82 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 83 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
83 virtual gfx::Size GetMinimumSize() OVERRIDE; 84 virtual gfx::Size GetMinimumSize() OVERRIDE;
84 virtual gfx::Size GetMaximumSize() OVERRIDE; 85 virtual gfx::Size GetMaximumSize() OVERRIDE;
85 86
86 private: 87 private:
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 ui::WindowShowState show_state) { 685 ui::WindowShowState show_state) {
685 views::WidgetDelegate::SaveWindowPlacement(bounds, show_state); 686 views::WidgetDelegate::SaveWindowPlacement(bounds, show_state);
686 shell_window_->SaveWindowPosition(); 687 shell_window_->SaveWindowPosition();
687 } 688 }
688 689
689 // static 690 // static
690 NativeShellWindow* NativeShellWindow::Create( 691 NativeShellWindow* NativeShellWindow::Create(
691 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { 692 ShellWindow* shell_window, const ShellWindow::CreateParams& params) {
692 return new ShellWindowViews(shell_window, params); 693 return new ShellWindowViews(shell_window, params);
693 } 694 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698