blob: 42b1bc445ca9b2689aa2536c05bd8e229c2fb7da (
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
|
// Copyright (c) 2006-2008 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/views/window_resources.h"
#include "chrome/app/theme/theme_resources.h"
#include "chrome/common/resource_bundle.h"
#include "SkBitmap.h"
// static
SkBitmap WindowResources::app_top_left_;
SkBitmap WindowResources::app_top_center_;
SkBitmap WindowResources::app_top_right_;
// static
void WindowResources::InitClass() {
static bool initialized = false;
if (!initialized) {
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
app_top_left_ = *rb.GetBitmapNamed(IDR_APP_TOP_LEFT);
app_top_center_ = *rb.GetBitmapNamed(IDR_APP_TOP_CENTER);
app_top_right_ = *rb.GetBitmapNamed(IDR_APP_TOP_RIGHT);
initialized = true;
}
}
|