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

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

Issue 10447053: Converts remainder of ui and chrome/browser/ui/views/frame to use ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 #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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Returns the selected WebContents/TabContentsWrapper. Used by our 174 // Returns the selected WebContents/TabContentsWrapper. Used by our
175 // NonClientView's TabIconView::TabContentsProvider implementations. 175 // NonClientView's TabIconView::TabContentsProvider implementations.
176 // TODO(beng): exposing this here is a bit bogus, since it's only used to 176 // TODO(beng): exposing this here is a bit bogus, since it's only used to
177 // determine loading state. It'd be nicer if we could change this to be 177 // determine loading state. It'd be nicer if we could change this to be
178 // bool IsSelectedTabLoading() const; or something like that. We could even 178 // bool IsSelectedTabLoading() const; or something like that. We could even
179 // move it to a WindowDelegate subclass. 179 // move it to a WindowDelegate subclass.
180 content::WebContents* GetSelectedWebContents() const; 180 content::WebContents* GetSelectedWebContents() const;
181 TabContentsWrapper* GetSelectedTabContentsWrapper() const; 181 TabContentsWrapper* GetSelectedTabContentsWrapper() const;
182 182
183 // Retrieves the icon to use in the frame to indicate an OTR window. 183 // Retrieves the icon to use in the frame to indicate an OTR window.
184 SkBitmap GetOTRAvatarIcon() const; 184 gfx::ImageSkia GetOTRAvatarIcon() const;
185 185
186 // Returns true if the Browser object associated with this BrowserView is a 186 // Returns true if the Browser object associated with this BrowserView is a
187 // tabbed-type window (i.e. a browser window, not an app or popup). 187 // tabbed-type window (i.e. a browser window, not an app or popup).
188 bool IsBrowserTypeNormal() const { 188 bool IsBrowserTypeNormal() const {
189 return browser_->is_type_tabbed(); 189 return browser_->is_type_tabbed();
190 } 190 }
191 191
192 // Returns true if the specified point(BrowserView coordinates) is in 192 // Returns true if the specified point(BrowserView coordinates) is in
193 // in the window caption area of the browser window. 193 // in the window caption area of the browser window.
194 bool IsPositionInWindowCaption(const gfx::Point& point); 194 bool IsPositionInWindowCaption(const gfx::Point& point);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ui::Accelerator* accelerator) OVERRIDE; 343 ui::Accelerator* accelerator) OVERRIDE;
344 344
345 // Overridden from views::WidgetDelegate: 345 // Overridden from views::WidgetDelegate:
346 virtual bool CanResize() const OVERRIDE; 346 virtual bool CanResize() const OVERRIDE;
347 virtual bool CanMaximize() const OVERRIDE; 347 virtual bool CanMaximize() const OVERRIDE;
348 virtual bool CanActivate() const OVERRIDE; 348 virtual bool CanActivate() const OVERRIDE;
349 virtual string16 GetWindowTitle() const OVERRIDE; 349 virtual string16 GetWindowTitle() const OVERRIDE;
350 virtual string16 GetAccessibleWindowTitle() const OVERRIDE; 350 virtual string16 GetAccessibleWindowTitle() const OVERRIDE;
351 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 351 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
352 virtual bool ShouldShowWindowTitle() const OVERRIDE; 352 virtual bool ShouldShowWindowTitle() const OVERRIDE;
353 virtual SkBitmap GetWindowAppIcon() OVERRIDE; 353 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE;
354 virtual SkBitmap GetWindowIcon() OVERRIDE; 354 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;
355 virtual bool ShouldShowWindowIcon() const OVERRIDE; 355 virtual bool ShouldShowWindowIcon() const OVERRIDE;
356 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE; 356 virtual bool ExecuteWindowsCommand(int command_id) OVERRIDE;
357 virtual std::string GetWindowName() const OVERRIDE; 357 virtual std::string GetWindowName() const OVERRIDE;
358 virtual void SaveWindowPlacement(const gfx::Rect& bounds, 358 virtual void SaveWindowPlacement(const gfx::Rect& bounds,
359 ui::WindowShowState show_state) OVERRIDE; 359 ui::WindowShowState show_state) OVERRIDE;
360 virtual bool GetSavedWindowPlacement( 360 virtual bool GetSavedWindowPlacement(
361 gfx::Rect* bounds, 361 gfx::Rect* bounds,
362 ui::WindowShowState* show_state) const OVERRIDE; 362 ui::WindowShowState* show_state) const OVERRIDE;
363 virtual views::View* GetContentsView() OVERRIDE; 363 virtual views::View* GetContentsView() OVERRIDE;
364 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; 364 virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 bool force_location_bar_focus_; 673 bool force_location_bar_focus_;
674 674
675 PendingFullscreenRequest fullscreen_request_; 675 PendingFullscreenRequest fullscreen_request_;
676 676
677 gfx::ScopedSysColorChangeListener color_change_listener_; 677 gfx::ScopedSysColorChangeListener color_change_listener_;
678 678
679 DISALLOW_COPY_AND_ASSIGN(BrowserView); 679 DISALLOW_COPY_AND_ASSIGN(BrowserView);
680 }; 680 };
681 681
682 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ 682 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/app_panel_browser_frame_view.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