summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 23:15:53 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 23:15:53 +0000
commit164606478faaa606df0c3d2637c4c0a476a59414 (patch)
tree2fd9491713efb56e15883848237f83c119c68a69 /views/view.cc
parent039c7b0b28a2501bf4f305ec9e21dbb7518e52cc (diff)
downloadchromium_src-164606478faaa606df0c3d2637c4c0a476a59414.zip
chromium_src-164606478faaa606df0c3d2637c4c0a476a59414.tar.gz
chromium_src-164606478faaa606df0c3d2637c4c0a476a59414.tar.bz2
Do all OOLing in the views code. linux_views now builds clean with the clang plugin.
BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6622002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc53
1 files changed, 53 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc
index 5643e80..895c678 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -48,6 +48,15 @@ char View::kViewClassName[] = "views/View";
void View::SetHotTracked(bool flag) {
}
+bool View::IsHotTracked() const {
+ return false;
+}
+
+// FATE TBD --------------------------------------------------------------------
+
+Widget* View::child_widget() {
+ return NULL;
+}
// Creation and lifetime -------------------------------------------------------
@@ -340,6 +349,10 @@ void View::SetVisible(bool flag) {
}
}
+bool View::IsVisible() const {
+ return is_visible_;
+}
+
bool View::IsVisibleInRootView() const {
return IsVisible() && parent() ? parent()->IsVisibleInRootView() : false;
}
@@ -544,6 +557,10 @@ int View::GetGroup() const {
return group_;
}
+bool View::IsGroupFocusTraversable() const {
+ return true;
+}
+
void View::GetViewsWithGroup(int group_id, std::vector<View*>* out) {
if (group_ == group_id)
out->push_back(this);
@@ -861,6 +878,10 @@ void View::ResetAccelerators() {
UnregisterAccelerators(false);
}
+bool View::AcceleratorPressed(const Accelerator& accelerator) {
+ return false;
+}
+
// Focus -----------------------------------------------------------------------
bool View::HasFocus() {
@@ -900,6 +921,10 @@ bool View::IsAccessibilityFocusableInRootView() const {
IsVisibleInRootView();
}
+void View::set_accessibility_focusable(bool accessibility_focusable) {
+ accessibility_focusable_ = accessibility_focusable;
+}
+
FocusManager* View::GetFocusManager() {
Widget* widget = GetWidget();
return widget ? widget->GetFocusManager() : NULL;
@@ -911,6 +936,18 @@ void View::RequestFocus() {
focus_manager->SetFocusedView(this);
}
+bool View::SkipDefaultKeyEventProcessing(const KeyEvent& e) {
+ return false;
+}
+
+FocusTraversable* View::GetFocusTraversable() {
+ return NULL;
+}
+
+FocusTraversable* View::GetPaneFocusTraversable() {
+ return NULL;
+}
+
// Tooltips --------------------------------------------------------------------
bool View::GetTooltipText(const gfx::Point& p, std::wstring* tooltip) {
@@ -988,6 +1025,14 @@ void View::NotifyAccessibilityEvent(AccessibilityTypes::Event event_type) {
NotifyAccessibilityEvent(event_type, true);
}
+string16 View::GetAccessibleDefaultAction() {
+ return string16();
+}
+
+string16 View::GetAccessibleKeyboardShortcut() {
+ return string16();
+}
+
bool View::GetAccessibleName(string16* name) {
DCHECK(name);
@@ -1001,6 +1046,14 @@ AccessibilityTypes::Role View::GetAccessibleRole() {
return AccessibilityTypes::ROLE_CLIENT;
}
+AccessibilityTypes::State View::GetAccessibleState() {
+ return 0;
+}
+
+string16 View::GetAccessibleValue() {
+ return string16();
+}
+
void View::SetAccessibleName(const string16& name) {
accessible_name_ = name;
}