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

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/aura/window.h"
12 #include "ui/base/hit_test.h"
13
14 // static
15 const char AppBrowserFrameViewAsh::kViewClassName[] = "AppBrowserFrameViewAsh";
16
17 AppBrowserFrameViewAsh::AppBrowserFrameViewAsh(
18 BrowserFrame* frame, BrowserView* browser_view)
19 : BrowserNonClientFrameView(frame, browser_view) {
20 frame->GetNativeView()->set_hit_test_bounds_override_inner(gfx::Insets());
21 int background_id = browser_view->IsOffTheRecord() ?
22 IDR_AURA_WINDOW_HEADER_BASE_INCOGNITO_ACTIVE :
23 IDR_AURA_WINDOW_HEADER_BASE_ACTIVE;
24 container_.reset(
25 new ash::HideableCaptionButtonContainer(background_id, frame));
26 container_->ShowButtonWidget();
27 }
28
29 AppBrowserFrameViewAsh::~AppBrowserFrameViewAsh() {
30 }
31
32 gfx::Rect AppBrowserFrameViewAsh::GetBoundsForClientView() const {
33 return GetLocalBounds();
34 }
35
36 gfx::Rect AppBrowserFrameViewAsh::GetWindowBoundsForClientBounds(
37 const gfx::Rect& client_bounds) const {
38 return client_bounds;
39 }
40
41 int AppBrowserFrameViewAsh::NonClientHitTest(
42 const gfx::Point& point) {
43 return HTNOWHERE;
44 }
45
46 void AppBrowserFrameViewAsh::GetWindowMask(const gfx::Size& size,
47 gfx::Path* window_mask) {
48 }
49
50 void AppBrowserFrameViewAsh::ResetWindowControls() {
51 }
52
53 void AppBrowserFrameViewAsh::UpdateWindowIcon() {
54 }
55
56 void AppBrowserFrameViewAsh::UpdateWindowTitle() {
57 }
58
59 gfx::Rect AppBrowserFrameViewAsh::GetBoundsForTabStrip(
60 views::View* tabstrip) const {
61 return gfx::Rect();
62 }
63
64 BrowserNonClientFrameView::TabStripInsets
65 AppBrowserFrameViewAsh::GetTabStripInsets(bool restored) const {
66 return TabStripInsets();
67 }
68
69 int AppBrowserFrameViewAsh::GetThemeBackgroundXInset() const {
70 return 0;
71 }
72
73 void AppBrowserFrameViewAsh::UpdateThrobber(bool running) {
74 }
75
76 const char* AppBrowserFrameViewAsh::GetClassName() const {
77 return kViewClassName;
78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698