blob: 9906b955ed8abb25a546592eace28fd564bbff4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/frame/dom_browser_view.h"
#include "chrome/browser/chromeos/frame/dom_browser_view_layout.h"
#include "ui/gfx/rect.h"
#include "views/widget/widget.h"
namespace chromeos {
// DOMBrowserView, public ------------------------------------------------------
DOMBrowserView::DOMBrowserView(Browser* browser)
: chromeos::BrowserView(browser) {}
DOMBrowserView::~DOMBrowserView() {}
// static
BrowserWindow* DOMBrowserView::CreateDOMWindow(Browser* browser) {
DOMBrowserView* view = new DOMBrowserView(browser);
(new BrowserFrame(view))->InitBrowserFrame();
return view;
}
void DOMBrowserView::WindowMoveOrResizeStarted() {}
gfx::Rect DOMBrowserView::GetToolbarBounds() const {
return gfx::Rect();
}
int DOMBrowserView::GetTabStripHeight() const {
return 0;
}
bool DOMBrowserView::IsTabStripVisible() const {
return false;
}
bool DOMBrowserView::AcceleratorPressed(const views::Accelerator& accelerator) {
return false;
}
void DOMBrowserView::SetStarredState(bool is_starred) {}
LocationBar* DOMBrowserView::GetLocationBar() const {
return NULL;
}
void DOMBrowserView::SetFocusToLocationBar(bool select_all) {}
void DOMBrowserView::UpdateReloadStopState(bool is_loading, bool force) {}
void DOMBrowserView::UpdateToolbar(TabContentsWrapper* contents,
bool should_restore_state) {}
void DOMBrowserView::FocusToolbar() {}
void DOMBrowserView::FocusAppMenu() {}
void DOMBrowserView::ShowBookmarkBubble(const GURL& url,
bool already_bookmarked) {}
void DOMBrowserView::ShowAppMenu() {}
LocationBarView* DOMBrowserView::GetLocationBarView() const {
return NULL;
}
ToolbarView* DOMBrowserView::GetToolbarView() const {
return NULL;
}
bool DOMBrowserView::ShouldShowOffTheRecordAvatar() const {
return false;
}
bool DOMBrowserView::GetAcceleratorForCommandId(int command_id,
ui::Accelerator* accelerator) {
return GetWidget()->GetAccelerator(command_id, accelerator);
}
bool DOMBrowserView::IsToolbarVisible() const {
return false;
}
// DOMBrowserView, protected ---------------------------------------------------
void DOMBrowserView::GetAccessiblePanes(
std::vector<AccessiblePaneView*>* panes) {}
void DOMBrowserView::PaintChildren(gfx::Canvas* canvas) {
views::ClientView::PaintChildren(canvas);
}
void DOMBrowserView::InitTabStrip(TabStripModel* model) {}
views::LayoutManager* DOMBrowserView::CreateLayoutManager() const {
return new DOMBrowserViewLayout;
}
ToolbarView* DOMBrowserView::CreateToolbar() const {
return NULL;
}
void DOMBrowserView::LoadingAnimationCallback() {}
} // namespace chromeos
|