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

Side by Side Diff: chrome/browser/ui/views/frame/app_browser_frame_view_ash.cc

Issue 25536010: Make packaged apps use AppNonClientFrameViewAsh when maximized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/frame/app_browser_frame_view_ash.h"
6
7 #include "ash/wm/caption_buttons/hideable_caption_button_container.h"
8 #include "chrome/browser/ui/views/frame/browser_frame.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "grit/ash_resources.h"
11 #include "ui/base/hit_test.h"
12
13 // static
14 const char AppBrowserFrameViewAsh::kViewClassName[] = "AppBrowserFrameViewAsh";
15
16 AppBrowserFrameViewAsh::AppBrowserFrameViewAsh(
17 BrowserFrame* frame, BrowserView* browser_view)
18 : BrowserNonClientFrameView(frame, browser_view) {
19 int background_id = browser_view->IsOffTheRecord() ?
20 IDR_AURA_WINDOW_HEADER_BASE_INCOGNITO_ACTIVE :
21 IDR_AURA_WINDOW_HEADER_BASE_ACTIVE;
22 container_.reset(
23 new ash::HideableCaptionButtonContainer(background_id, frame));
24 container_->ShowButtonWidget();
25 }
26
27 AppBrowserFrameViewAsh::~AppBrowserFrameViewAsh() {
28 }
29
30 gfx::Rect AppBrowserFrameViewAsh::GetBoundsForClientView() const {
31 return GetLocalBounds();
32 }
33
34 gfx::Rect AppBrowserFrameViewAsh::GetWindowBoundsForClientBounds(
35 const gfx::Rect& client_bounds) const {
36 return client_bounds;
37 }
38
39 int AppBrowserFrameViewAsh::NonClientHitTest(
40 const gfx::Point& point) {
41 return HTNOWHERE;
42 }
43
44 void AppBrowserFrameViewAsh::GetWindowMask(const gfx::Size& size,
45 gfx::Path* window_mask) {
46 }
47
48 void AppBrowserFrameViewAsh::ResetWindowControls() {
49 }
50
51 void AppBrowserFrameViewAsh::UpdateWindowIcon() {
52 }
53
54 void AppBrowserFrameViewAsh::UpdateWindowTitle() {
55 }
56
57 gfx::Rect AppBrowserFrameViewAsh::GetBoundsForTabStrip(
58 views::View* tabstrip) const {
59 return gfx::Rect();
60 }
61
62 BrowserNonClientFrameView::TabStripInsets
63 AppBrowserFrameViewAsh::GetTabStripInsets(bool restored) const {
64 return TabStripInsets();
65 }
66
67 int AppBrowserFrameViewAsh::GetThemeBackgroundXInset() const {
68 return 0;
69 }
70
71 void AppBrowserFrameViewAsh::UpdateThrobber(bool running) {
72 }
73
74 const char* AppBrowserFrameViewAsh::GetClassName() const {
75 return kViewClassName;
76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698