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

Side by Side Diff: chrome/browser/views/frame/popup_non_client_frame_view.cc

Issue 3133001: Issue 4448: Hide the address bar for popups in ChromeOS (Closed)
Patch Set: Merge fix. Created 10 years, 4 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
« no previous file with comments | « chrome/browser/views/frame/popup_non_client_frame_view.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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/views/frame/popup_non_client_frame_view.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/views/tabs/base_tab_strip.h"
9 #include "gfx/point.h"
10 #include "gfx/rect.h"
11 #include "gfx/size.h"
12
13 #if defined(OS_LINUX)
14 #include "views/window/hit_test.h"
15 #endif
16
17 gfx::Rect PopupNonClientFrameView::GetBoundsForClientView() const {
18 return gfx::Rect(0, 0, width(), height());
19 }
20
21 bool PopupNonClientFrameView::AlwaysUseCustomFrame() const {
22 return false;
23 }
24
25 bool PopupNonClientFrameView::AlwaysUseNativeFrame() const {
26 return true;
27 }
28
29 gfx::Rect PopupNonClientFrameView::GetWindowBoundsForClientBounds(
30 const gfx::Rect& client_bounds) const {
31 return client_bounds;
32 }
33
34 int PopupNonClientFrameView::NonClientHitTest(const gfx::Point& point) {
35 return bounds().Contains(point) ? HTCLIENT : HTNOWHERE;
36 }
37
38 void PopupNonClientFrameView::GetWindowMask(const gfx::Size& size,
39 gfx::Path* window_mask) {
40 }
41
42 void PopupNonClientFrameView::EnableClose(bool enable) {
43 }
44
45 void PopupNonClientFrameView::ResetWindowControls() {
46 }
47
48 gfx::Rect PopupNonClientFrameView::GetBoundsForTabStrip(
49 BaseTabStrip* tabstrip) const {
50 return gfx::Rect(0, 0, width(), tabstrip->GetPreferredHeight());
51 }
52
53 void PopupNonClientFrameView::UpdateThrobber(bool running) {
54 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/popup_non_client_frame_view.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698